Teamkilling
#3

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.
Reply


Messages In This Thread
Teamkilling - by John_F - 10.01.2011, 03:30
Re: Teamkilling - by JaTochNietDan - 10.01.2011, 04:28
Re: Teamkilling - by Grim_ - 10.01.2011, 04:32
Re: Teamkilling - by John_F - 10.01.2011, 05:05
Re: Teamkilling - by JaTochNietDan - 10.01.2011, 05:05
Re: Teamkilling - by John_F - 10.01.2011, 05:09
Re: Teamkilling - by JaTochNietDan - 10.01.2011, 05:10
Re: Teamkilling - by John_F - 10.01.2011, 05:12

Forum Jump:


Users browsing this thread: 1 Guest(s)