17.08.2011, 10:03
Aah that's hard code.
Best easy and working code is here:
On top
Underneath
OnGameModeInit
And anywhere this in your FS/GM.
This code works great if you will put in Corrent places.
Thanks
Best easy and working code is here:
On top
pawn Код:
new gTeam[MAX_PLAYERS]; //Hope you already have this.
pawn Код:
forward SettingPlayerTeam(); //Teamkill
pawn Код:
SetTimer("SettingPlayerTeam", 5000 ,true); //Teamkill
pawn Код:
public SettingPlayerTeam()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerTeam(i, gTeam[i]);
}
}
}
Thanks