small fix
This commit is contained in:
parent
5d458538ba
commit
25c0d8d49c
@ -7,7 +7,6 @@
|
||||
#include <zombiereloaded>
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user