ZombieManager: first fix

This commit is contained in:
Dogan 2019-06-10 17:59:23 +02:00
parent f72914330f
commit 3c6acb927d

View File

@ -123,6 +123,18 @@ public Action Command_DisplayMotherzombies(int client, int args)
public Action Command_Testround(int client, int args)
{
if(GetClientTeam(client) == CS_TEAM_SPECTATOR)
{
ReplyToCommand(client, "[SM] Please join a Team first.");
return Plugin_Handled;
}
if(!IsPlayerAlive(client))
{
ReplyToCommand(client, "[SM] Please respawn yourself first.");
return Plugin_Handled;
}
ToggleTestRound(client);
return Plugin_Handled;
}