From 25c0d8d49cfec4c0806f89427bef8b380dde1766 Mon Sep 17 00:00:00 2001 From: DoganGFL Date: Wed, 21 Nov 2018 18:22:19 +0100 Subject: [PATCH] small fix --- VIPMode/scripting/VIPMode.sp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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