diff --git a/plugins/L4D2Tools.smx b/plugins/L4D2Tools.smx index dea4216..5739c89 100644 Binary files a/plugins/L4D2Tools.smx and b/plugins/L4D2Tools.smx differ diff --git a/plugins/l4d2_ai_minigun.smx b/plugins/l4d2_ai_minigun.smx index b123b45..0a7df47 100644 Binary files a/plugins/l4d2_ai_minigun.smx and b/plugins/l4d2_ai_minigun.smx differ diff --git a/plugins/l4d2_avoid_minigun.smx b/plugins/l4d2_avoid_minigun.smx index d279efe..ee70bb4 100644 Binary files a/plugins/l4d2_avoid_minigun.smx and b/plugins/l4d2_avoid_minigun.smx differ diff --git a/scripting/l4d2-manual-director.sp b/scripting/l4d2-manual-director.sp index 8f75661..2d4c9d0 100644 --- a/scripting/l4d2-manual-director.sp +++ b/scripting/l4d2-manual-director.sp @@ -63,7 +63,7 @@ public Action Command_SpawnSpecial(int client, int args) { GetCmdArg(1, arg1, sizeof(arg1)); int executioner = GetAnyValidClient(); if (args < 1) { - ReplyToCommand(client, "[SM] Usage: sm_spawnspecial - Requests a special to spawn via director", arg1); + ReplyToCommand(client, "[SM] Usage: sm_spawnspecial - Requests a special to spawn via director", arg1); } else { if (executioner <= 0) { ReplyToCommand(client, "[SM] Cannot spawn a %s as there are no players online.", arg1); @@ -94,7 +94,7 @@ public Action Command_SpawnSpecialForceLocal(int client, int args) { char arg1[32]; GetCmdArg(1, arg1, sizeof(arg1)); if (args < 1) { - ReplyToCommand(client, "[SM] Usage: sm_forcecursor - Requests a special to spawn at cursor", arg1); + ReplyToCommand(client, "[SM] Usage: sm_forcecursor - Requests a special to spawn at cursor", arg1); } else { if(StrEqual(arg1,"panic",false)) { CheatCommand(client, "director_force_panic_event", "", ""); @@ -112,7 +112,7 @@ public Action Command_SpawnSpecialForceLocal(int client, int args) { AnnounceSpawn(arg1); LogAction(client, -1, "\"%L\" spawned a \"%s\"", client, arg1); } - return Plugin_Handled; + return Plugin_Continue; } public Action Command_SpawnSpecialForce(int client, int args) { @@ -120,7 +120,7 @@ public Action Command_SpawnSpecialForce(int client, int args) { GetCmdArg(1, arg1, sizeof(arg1)); int executioner = GetAnyValidClient(); if (args < 1) { - ReplyToCommand(client, "[SM] Usage: sm_forcespecial - Requests a special to spawn via director", arg1); + ReplyToCommand(client, "[SM] Usage: sm_forcespecial - Requests a special to spawn via director", arg1); } else { if (executioner <= 0) { ReplyToCommand(client, "[SM] Cannot spawn a %s as there are no players online.", arg1); @@ -243,7 +243,7 @@ stock int GetAnyValidClient() return -1; } -stock void CheatCommand(int client, char[] command, char[] argument1, char[] argument2) +stock void CheatCommand(int client, const char[] command, const char[] argument1, const char[] argument2) { int userFlags = GetUserFlagBits(client); SetUserFlagBits(client, ADMFLAG_ROOT); @@ -254,7 +254,7 @@ stock void CheatCommand(int client, char[] command, char[] argument1, char[] arg SetUserFlagBits(client, userFlags); } -void AnnounceSpawn(char[] type) { +void AnnounceSpawn(const char[] type) { switch(g_cMdAnnounceLevel.IntValue) { case 1: if(StrEqual(type,"tank") || StrEqual(type,"witch")) { diff --git a/scripting/l4d2_avoid_minigun.sp b/scripting/l4d2_avoid_minigun.sp index 8b1c537..52c58ad 100644 --- a/scripting/l4d2_avoid_minigun.sp +++ b/scripting/l4d2_avoid_minigun.sp @@ -52,7 +52,7 @@ public Action CheckTimer(Handle timer) { static int timer_update_pos; if(GetClientCount(true) == 0) return Plugin_Continue; for(int i = 1; i < MaxClients; i++) { - if(IsClientConnected(i) && !IsFakeClient(i) && bIsSurvivorClient[i]) { + if(IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && !IsFakeClient(i) && bIsSurvivorClient[i]) { bool usingMinigun = GetEntProp(i, Prop_Send, "m_usingMountedGun", 1) == 1; bool usingMountedWeapon = GetEntProp(i, Prop_Send, "m_usingMountedWeapon", 1) == 1; @@ -67,7 +67,7 @@ public Action CheckTimer(Handle timer) { } for(int bot = 1; bot < MaxClients; bot++) { - if(IsClientConnected(bot) && IsFakeClient(bot) && bIsSurvivorClient[bot]) { + if(IsClientConnected(bot) && IsClientInGame(i) && IsFakeClient(bot) && bIsSurvivorClient[bot]) { float botPos[3]; GetClientAbsOrigin(bot, botPos);