17.02.2011, 20:40
pawn Код:
#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;
}
This will restart if anyone is TEAM_ZOMBIE...Its a start..