09.08.2009, 06:31
Hey when I use this code, when a user trys to connect to the server, they connect, stay connect for a few seconds, then they get disconnected. But i need anti-team kill because i have a TDM server..
Код:
// top of your gamemode
forward SettingPlayerTeam();
//OnPlayerConnect
SetTimerEx("SettingPlayerTeam",10,1,"d",playerid);
//Bottom of your script
public SettingPlayerTeam()
{
for(new playerid; playerid < 200; playerid++)
SetPlayerTeam(playerid, gTeam[playerid]);
return 1;
}


