20.08.2011, 21:29
If you try to hit a team it kills you? Hmm not good you will die everytime.
Try using this guys:
On top:
And this under OnGameModeInit
And anywhere in GM.
This code is 100% working if you put it rite paths.
Thanks.
Try using this guys:
On top:
pawn Code:
forward TeamProtection();
pawn Code:
SetTimer("TeamProtection", 5000 ,true);
pawn Code:
public TeamProtection()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerTeam(i, gTeam[i]);
}
}
}
Thanks.