17.02.2011, 20:31
help me please i need help with to make : when all players is This Team "TEAM_ZOMBIE" will be a restart please help me
#include <a_samp>
#define TEAM_ZOMBIES 1
forward CheckTeams();
public OnGameModeInit()
{
SetTimer("CheckTeams",2000,true);
return 1;
}
public CheckTeams()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == 1)
{
SendRconCommand("gmx");
}
else { }
}
return 1;
}