新开正版【特色】L42D求生之路2的Steam组服务器2018-4-18
求生之路吧
全部回复
仅看楼主
level 4
Joyistxxx 楼主
新开正版L42D求生之路2的Steam组服务器2018-4-18
加入我们steam组 http://steamcommunity.com/groups/4076664
快速加入游戏页面 http://game.cgcss.com/l4d2_servermessage/
==================================================
L4D2漫步云端-战役插件服 - [难度:正常]
==================================================
Click to join
北京1号服-加入 steam://connect/ssr.chdong.top:27015/
广州2号服-加入 steam://connect/ddy.chdong.top:27015/
上海3号服-加入 steam://connect/192.144.135.25:27015/
==================================================
游戏特色: [普通丧尸-爆头击杀]+[队友伤害-参照现实]+[特感能力-明显强化]
邪恶女巫、超女Spitter、超能CHARGER、超能BOOMER、邪恶HUNTER、SMOKER、JOCKEY
从天而降的死亡航班;特别定制官方地图(无需下载),加入路障,更多迷宫阻挡幸存者逃生哦
[作为难度补偿,设置医疗/近战资源,人类buff--增加炫目主角光环]
==================================================
指令:!jg--【加入游戏】!away--【观察模式】!votes--【投票】
!onhx--【救人奖血】!ontui--【无限推开】!c--【角色更换】
!ldw--【抽奖系统】 !zs---【自杀吧】
==================================================
想要插件或者有问题.....请联系企鹅群:706789052
Our website/我们的网站
http://chdong.top
2018年04月17日 17点04分 1
level 4
Joyistxxx 楼主
L4D2 Multiplayer RMC
2018年04月17日 17点04分 2
福利赠送[太开心] RMC多功能、多人设置插件 源码楼下
2018年04月17日 19点04分
level 4
Joyistxxx 楼主
L4D2 Multiplayer RMC Source code
--------------------------------------------------
public void PrintToChatAll(char format[])
{
char buffer[256];
int i = 1;
while (i <= MaxClients)
{
if (IsClientInGame(i))
{
SetGlobalTransTarget(i);
VFormat(buffer, 254, format, 2);
PrintToChat(i, "%s", buffer);
i++;
}
i++;
}
return void 0;
}
public void OnPluginStart()
{
CreateConVar("L4D2_Multiplayer_RMC_version", "1.1", "L4D2多人游戏设置", 8512, false, 0, false, 0);
RegConsoleCmd("sm_jg", Jointhegame, "", 0);
RegConsoleCmd("sm_joingame", Jointhegame, "", 0);
RegConsoleCmd("sm_away", Gotoaway, "", 0);
RegConsoleCmd("sm_addbot", CreateOneBot, "", 0);
RegConsoleCmd("sm_sinfo", Vserverinfo, "", 0);
RegConsoleCmd("sm_bd", Bindkeyhots, "", 0);
RegConsoleCmd("sm_rhelp", Scdescription, "", 0);
RegAdminCmd("kb", Kbcheck, 2, "", "", 0);
RegConsoleCmd("sm_sp", RListLoadplayer, "", 0);
RegConsoleCmd("sm_zs", Rzhisha, "", 0);
RegAdminCmd("sset", Numsetcheck, 2, "", "", 0);
HookEvent("round_start", EventHook 25, EventHookMode 2);
HookEvent("player_team", EventHook 27, EventHookMode 1);
hUsermnums = CreateConVar("L4D2_Rmc_total", "4", "服务器支持玩家人数设置", 0, true, 1, true, 24);
usermnums = GetConVarInt(hUsermnums);
hRJoincheck = CreateConVar("l4d2_ADM_CHA", "0", "[0=关|1=开]是否开启2个管理员预留通道", 0, true, 0, true, 1);
RJoincheck = GetConVarBool(hRJoincheck);
hAwayCEnable = CreateConVar("L4D2_Away_Enable", "0", "[0=关|1=开]是否只允许管理员使用!away加入观察者.1=On,0=Off", 0, true, 0, true, 1);
AwayCEnable = GetConVarBool(hAwayCEnable);
hAutoBotcheck = CreateConVar("l4d2_AUOT_ADDBOT", "1", "[0=关|1=开]是否开启自动增加BOT", 0, true, 0, true, 1);
RAutoBotcheck = GetConVarBool(hAutoBotcheck);
RCNcheck = 0;
AutoExecConfig(true, "l4d2_rmc", "sourcemod");
return void 0;
}
public void OnMapStart()
{
SetConVarInt(FindConVar("z_spawn_flow_limit"), 999999, false, false);
RJoincheck = GetConVarBool(hRJoincheck);
AwayCEnable = GetConVarBool(hAwayCEnable);
RAutoBotcheck = GetConVarBool(hAutoBotcheck);
if (!RCNcheck)
{
usermnums = GetConVarInt(hUsermnums);
if (usermnums < 1)
{
usermnums = 1;
}
}
return void 0;
}
public Action Event_rmcRoundStart(Handle event, char name[], bool dontBroadcast)
{
CreateTimer(1, rmcRepDelays, any 0, 0);
return Action 0;
}
public Action JgHintplayers16(Handle timer, any client)
{
if (0 < Botnums())
{
if (0 < Alivebotnums())
{
ClientCommand(client, "jointeam 2");
ClientCommand(client, "go_away_from_keyboard");
return Action 3;
}
PrintToChat(client, "\x05[加入失败:]\x04请等待BOT被拯救后再输入!jg加入.");
return Action 3;
}
PrintToChat(client, "\x05[加入失败:]\x04没有足够的BOT允许你控制,请输入!addbot增加电脑. ");
return Action 3;
}
public void OnClientDisconnect(int client)
{
int var1;
if (client)
{
Rmc_ChangeTeam[client] = 0;
CreateTimer(1, DisKickClient, any 0, 0);
}
return void 0;
}
public Action DisKickClient(Handle timer)
{
char asnus[4];
char aynus[4];
char abnus[4];
int asnus1 = 0;
int aynus1 = 0;
int abnus1 = 0;
Format(asnus, 3, "%i", Survivors());
Format(aynus, 3, "%i", Gonaways());
Format(abnus, 3, "%i", Botnums());
asnus1 = StringToInt(asnus, 10);
aynus1 = StringToInt(aynus, 10);
abnus1 = StringToInt(abnus, 10);
if (abnus1 > aynus1)
{
if (asnus1 > 4)
{
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientInGame(i))
{
KickClient(i, "");
}
i++;
}
}
}
return Action 0;
}
public Action rmcRepDelays(Handle timer)
{
if (usermnums < 1)
{
usermnums = 1;
}
if (RJoincheck)
{
ServerCommand("sm_cvar sv_maxplayers %i", usermnums + 2);
ServerCommand("sm_cvar sv_visiblemaxplayers %i", usermnums);
PrintToChatAll("\x04[提示] \x03公共位置\x01[%i] \x03管理员预留位置\x01[2]", 2272);
}
else
{
ServerCommand("sm_cvar sv_maxplayers %i", usermnums);
ServerCommand("sm_cvar sv_visiblemaxplayers %i", usermnums);
}
return Action 0;
}
public bool OnClientConnect(int client, char rejectmsg[], int maxlen)
{
if (RJoincheck)
{
int Rnmax = GetConVarInt(FindConVar("sv_maxplayers"));
int asnus1 = Allplayersn();
if (Rnmax + -2 <= asnus1)
{
int var1;
if (client)
{
KickClient(client, "服务器已满,你不是管理员无法进入预留通道!");
}
Rmc_ChangeTeam[client] = 0;
return true;
}
Rmc_ChangeTeam[client] = 0;
return true;
}
Rmc_ChangeTeam[client] = 0;
return true;
}
public Action Kbcheck(int client, int args)
{
if (GetUserFlagBits(client))
{
int ix = 1;
while (ix <= MaxClients)
{
int var1;
if (IsClientInGame(ix))
{
KickClient(ix, "");
ix++;
}
ix++;
}
PrintToChatAll("\x05[提示]\x03 踢除所有bot.");
return Action 0;
}
ReplyToCommand(client, "[提示] 该功能只限管理员使用.");
return Action 0;
}
public Action Numsetcheck(int client, int args)
{
if (GetUserFlagBits(client))
{
rDisplaySnumMenu(client);
return Action 0;
}
ReplyToCommand(client, "[提示] 该功能只限管理员使用.");
return Action 0;
}
public int rDisplaySnumMenu(int client)
{
char namelist[64];
char nameno[4];
Handle menu = CreateMenu(MenuHandler 61, MenuAction 28);
SetMenuTitle(menu, "服务器人数设置");
int i = 1;
while (i <= 24)
{
Format(nameno, 3, "%i", i);
AddMenuItem(menu, nameno, namelist, 0);
i++;
}
SetMenuExitButton(menu, true);
DisplayMenu(menu, client, 0);
return 0;
}
public int rNumMenuHandler(Handle menu, MenuAction action, int client, int itemNum)
{
if (action == MenuAction 4)
{
char clientinfos[12];
int userids = 0;
GetMenuItem(menu, itemNum, clientinfos, 10, 0, "", 0);
userids = StringToInt(clientinfos, 10);
usermnums = userids;
RCNcheck = 1;
PrintToChat(client, "\x05[提醒:]\x04 默认人数请修改l4d2_rmc.cfg");
CreateTimer(0.1, rmcRepDelays, any 0, 0);
}
return 0;
}
public Action Scdescription(int client, int args)
{
PrintToChatAll("\x05[插件说明]\x03 !jg\x04或\x03!joingame\x04 加入游戏, \x03!away\x04 观察者, \x03!addbot\x04 增加一个电脑,");
PrintToChatAll("\x05[插件说明]\x03 !sinfo\x04 显示服务器人数信息, \x03!rhelp\x04 显示插件使用说明, \x03!bd\x04 绑定键盘 L 键自动输入joingame");
PrintToChatAll("\x05[插件说明]\x03 !sp\x04 显示还在加载中的玩家列表, \x03!zs\x04 自杀");
PrintToChatAll("\x05[插件说明]\x03 !kb\x04 踢除所有bot, \x03!sset\x04 设置服务器人数 \x03");
return Action 3;
}
public Action Bindkeyhots(int client, int args)
{
ClientCommand(client, "bind l \"say_team !joingame\"");
PrintToChat(client, "\x05[提醒:]\x04已绑定键盘\x03 L \x04键为自动输入\x03!joingame\x04");
return Action 3;
}
2018年04月17日 19点04分 3
level 4
Joyistxxx 楼主
public Action Gotoaway(int client, int argCount)
{
if (AwayCEnable)
{
if (GetUserFlagBits(client))
{
ChangeClientTeam(client, 1);
return Action 3;
}
PrintToChat(client, "\x05[失败:]\x04服务没有开启!away可请管理员修改l4d2_rmc.cfg");
return Action 3;
}
ChangeClientTeam(client, 1);
return Action 3;
}
public Action Jointhegame(int client, int args)
{
if (0 < Botnums())
{
if (0 < Alivebotnums())
{
ClientCommand(client, "jointeam 2");
ClientCommand(client, "go_away_from_keyboard");
return Action 3;
}
PrintToChat(client, "\x05[加入失败:]\x04请等待BOT被拯救后再输入!jg加入.");
return Action 3;
}
PrintToChat(client, "\x05[加入失败:]\x04没有足够的BOT允许你控制,请输入!addbot增加电脑.");
return Action 3;
}
public int Survivors()
{
int numSurvivors = 0;
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientInGame(i))
{
numSurvivors++;
i++;
}
i++;
}
return numSurvivors;
}
public int AliveSurvivors()
{
int numSurvivors = 0;
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientConnected(i))
{
numSurvivors++;
i++;
}
i++;
}
return numSurvivors;
}
public int Allplayersn()
{
int numplayers = 0;
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientConnected(i))
{
numplayers++;
i++;
}
i++;
}
return numplayers;
}
public int Botnums()
{
int numBots = 0;
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientInGame(i))
{
numBots++;
i++;
}
i++;
}
return numBots;
}
public int Alivebotnums()
{
int AnumBots = 0;
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientInGame(i))
{
AnumBots++;
i++;
}
i++;
}
return AnumBots;
}
public int Gonaways()
{
int numaways = 0;
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientInGame(i))
{
numaways++;
i++;
}
i++;
}
return numaways;
}
public Action Vserverinfo(int client, int args)
{
PrintToChat(client, "\x05[提示]\x03 幸存者数量 \x04[%i]\x03 玩家幸存者数量 \x04[%i]\x03 观察者数量 \x04[%i]\x03 bot数量 \x04[%i]\x03 生存的bot数量 \x04[%i]", Survivors(), AliveSurvivors(), Gonaways(), Botnums(), Alivebotnums());
return Action 3;
}
public Action Rzhisha(int client, int args)
{
int var1;
if (IsClientInGame(client))
{
ForcePlayerSuicide(client);
}
return Action 3;
}
public Action RListLoadplayer(int client, int args)
{
char RLPlist[64];
int Rlnameall = 0;
bool RloadplayerN = 0;
PrintToChatAll("\x05[提示]\x03 加载中的玩家列表...");
int i = 1;
while (i <= MaxClients)
{
int var1;
if (IsClientConnected(i))
{
GetClientName(i, RLPlist, 64);
Rlnameall++;
PrintToChatAll("\x05[%i]\x04 %s \x01ID: %i", Rlnameall, RLPlist, i);
RloadplayerN = 1;
i++;
}
i++;
}
if (!RloadplayerN)
{
PrintToChatAll("\x05 ------ 无 ------");
}
else
{
PrintToChatAll("\x05------\x04 %i \x05人还在加载中------", Rlnameall);
}
return Action 3;
}
2018年04月17日 19点04分 4
level 4
Joyistxxx 楼主
public Action CreateOneBot(int client, int agrs)
{
LCreateOneBot(client);
return Action 0;
}
public int LCreateOneBot(int client)
{
char asnus[4];
char aynus[4];
char abnus[4];
int asnus1 = 0;
int aynus1 = 0;
int abnus1 = 0;
Format(asnus, 3, "%i", Survivors());
Format(aynus, 3, "%i", Gonaways());
Format(abnus, 3, "%i", Botnums());
asnus1 = StringToInt(asnus, 10);
aynus1 = StringToInt(aynus, 10);
abnus1 = StringToInt(abnus, 10);
int var1;
if (abnus1 < aynus1)
{
int survivorbot = CreateFakeClient("survivor bot");
ChangeClientTeam(survivorbot, 2);
DispatchKeyValue(survivorbot, "classname", "SurvivorBot");
DispatchSpawn(survivorbot);
CreateTimer(1, SurvivorKicker, survivorbot, 0);
int i = 1;
while (i <= MaxClients)
{
int var2;
if (IsClientConnected(i))
{
float vAngles1[3];
float vOrigin1[3];
GetClientAbsOrigin(i, vOrigin1);
GetClientAbsAngles(i, vAngles1);
TeleportEntity(survivorbot, vOrigin1, vAngles1, NULL_VECTOR);
}
i++;
}
}
else
{
PrintCenterText(client, "\x05[提示]\x03 无需增加bot.");
PrintToChat(client, "\x05[提示]\x03 无需增加bot.");
}
return 0;
}
public Action SurvivorKicker(Handle timer, any survivorbot)
{
KickClient(survivorbot, "CreateOneBot...");
PrintToChatAll("\x05[提示]\x01 BOT 创建完成,加入请按鼠标左键.");
return Action 3;
}
public Action Event_rmcteam(Handle event, char name[], bool dontBroadcast)
{
if (RAutoBotcheck)
{
int Client = GetClientOfUserId(GetEventInt(event, "userid", 0));
int var1;
if (Client)
{
if (Rmc_ChangeTeam[Client][0][0])
{
}
else
{
CreateTimer(0.5, JointeamRmc, Client, 0);
Rmc_ChangeTeam[Client] = 1;
}
}
}
return Action 0;
}
public Action JointeamRmc(Handle timer, any client)
{
int var1;
if (IsClientConnected(client))
{
if (GetClientTeam(client) != 2)
{
LCreateOneBot(client);
CreateTimer(1.5, JgHintplayers16, client, 0);
}
}
return Action 0;
}
2018年04月17日 19点04分 5
level 12
怎么全是脚本代码[阴险][阴险]
2018年04月17日 22点04分 6
有源码是奉送的
2018年04月18日 11点04分
level 4
Joyistxxx 楼主
是上面代码是 多人插件,很有名的
2018年04月18日 11点04分 7
level 4
Joyistxxx 楼主
。.1323215496
2018年04月18日 13点04分 8
level 8
可是我现在在学校躲着被子玩看帖子[喷]
2018年04月18日 15点04分 9
level 13
路过[小乖]
2018年07月02日 11点07分 10
level 12
放个网盘链接不好吗?
2019年11月14日 07点11分 11
1