diff --git a/VIPMode/scripting/VIPMode.sp b/VIPMode/scripting/VIPMode.sp index 14687004..a8092ec8 100644 --- a/VIPMode/scripting/VIPMode.sp +++ b/VIPMode/scripting/VIPMode.sp @@ -7,7 +7,6 @@ #include int g_iVIPClient = -1; -int g_islay = 1; bool g_bmotherInfect = false; public Plugin myinfo = @@ -72,7 +71,7 @@ public Action SelectVIP(Handle timer) public Action SlayHumans(Handle timer) { - PerformCTSlay(g_islay); + PerformCTSlay(); } public void PerformVIPSelection(bool reselect) @@ -183,13 +182,13 @@ public void RequestFrame_Callback(int iPacked) PerformVIPSelection(true); } -public void PerformCTSlay(int slay) +public void PerformCTSlay() { - for (g_islay = 1; g_islay <= MaxClients; g_islay++) + for (int player = 1; player <= MaxClients; player++) { - if (IsClientInGame(g_islay) && IsPlayerAlive(g_islay) && ZR_IsClientHuman(g_islay)) + if (IsClientInGame(player) && IsPlayerAlive(player) && ZR_IsClientHuman(player)) { - ForcePlayerSuicide(g_islay); + ForcePlayerSuicide(player); } } } \ No newline at end of file