09.04.2014, 05:17
Put this ontop of your script.
This under OnGameModeInIt()
dis anywhere in your script, I'm using SetPlayerTeam yes, you said it didnt work, but I'm sure 100% this waay anti-teamkll style will work.
pawn Код:
forward TeamProtection();
pawn Код:
SetTimer("TeamProtection", 5000 ,true);
pawn Код:
public TeamProtection()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerTeam(i, gTeam[i]);
}
}
}