diff --git a/ExtraCommands/scripting/ExtraCommands.sp b/ExtraCommands/scripting/ExtraCommands.sp index a680a27f..db0a6c7c 100644 --- a/ExtraCommands/scripting/ExtraCommands.sp +++ b/ExtraCommands/scripting/ExtraCommands.sp @@ -19,7 +19,7 @@ public Plugin:myinfo = name = "Advanced Commands", author = "BotoX", description = "Adds: hp, kevlar, weapon, strip, buyzone, iammo, speed", - version = "1.0", + version = "1.0.1", url = "" }; @@ -93,7 +93,7 @@ public Action Listener_Pause(int client, const char[] command, int argc) public Action:Event_BombPlanted(Handle:event, const String:name[], bool:dontBroadcast) { - for(new i = 1; i < MAXPLAYERS; i++) + for(new i = 1; i <= MAXPLAYERS; i++) { if(IsClientInGame(i)) ClientCommand(i, "playgamesound \"radio/bombpl.wav\""); @@ -103,7 +103,7 @@ public Action:Event_BombPlanted(Handle:event, const String:name[], bool:dontBroa public Action:Event_BombDefused(Handle:event, const String:name[], bool:dontBroadcast) { - for(new i = 1; i < MAXPLAYERS; i++) + for(new i = 1; i <= MAXPLAYERS; i++) { if(IsClientInGame(i)) ClientCommand(i, "playgamesound \"radio/bombdef.wav\""); diff --git a/NoShake/scripting/NoShake.sp b/NoShake/scripting/NoShake.sp index 78b079bd..a021c65a 100644 --- a/NoShake/scripting/NoShake.sp +++ b/NoShake/scripting/NoShake.sp @@ -9,7 +9,7 @@ Handle g_hNoShakeCookie; ConVar g_Cvar_NoShakeGlobal; -bool g_bNoShake[MAXPLAYERS] = {false, ...}; +bool g_bNoShake[MAXPLAYERS + 1] = {false, ...}; bool g_bNoShakeGlobal = false; public Plugin myinfo = @@ -17,7 +17,7 @@ public Plugin myinfo = name = "NoShake", author = "BotoX", description = "Disable env_shake", - version = "1.0", + version = "1.0.1", url = "" };