13.09.2009, 16:26
Hello,
Im using SetPlayerTeam So cops can't hurt other team mates(cops/army) and that all works fine.
now im trying that if a player color is white that he cant hurt other white players but then when he turn wanted his team need to get back to default so every player can kill him again and he need to b able kill everyone again..
on wiki i readed that every player is team 0 by default so i tried SetPlayerTeam(playerid, 0); but no succes then every wanted is set by team 0 and cant kill eachother..
so im looking for a way to stop the player beeing in a team and able to kill everyone again.
Any idea to make this work would b cool .
hope im clear enough![Smiley](images/smilies/smile.png)
Im using SetPlayerTeam So cops can't hurt other team mates(cops/army) and that all works fine.
now im trying that if a player color is white that he cant hurt other white players but then when he turn wanted his team need to get back to default so every player can kill him again and he need to b able kill everyone again..
on wiki i readed that every player is team 0 by default so i tried SetPlayerTeam(playerid, 0); but no succes then every wanted is set by team 0 and cant kill eachother..
so im looking for a way to stop the player beeing in a team and able to kill everyone again.
Any idea to make this work would b cool .
hope im clear enough
![Smiley](images/smilies/smile.png)