Quote:
Originally Posted by Grim_
Despite SetPlayerTeam's purpose of not allowing members of the same team to damage each other, it is very buggy. I'm not sure why, but the following code in a timer a few seconds after the player has spawned will prevent the bug from occurring.
pawn Код:
SetTeams( playerid ) { SetPlayerTeam( playerid, GetPlayerTeam( playerid ) ); return 1; }
It sets the team accordingly, but it never actually prevents from harming, or getting harmed, from other teammates. For some reason, after applying the function again, it fixes the issue.
|
I believe that this error only occurs when someone connects to the server, so in order to fix this bug, you need to use SetPlayerTeam on everyone in the server each time someone connects.