[Quistion] SetplayerTeam..!
#1

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


Reply
#2

My suggestion would be if a player is wanted than it changes there team so that anyone can kill them. So whatever you have wanted as (which is probably like pWanted or something) than you just do if(pWanted[playerid] = 1)
{
change the team here
blah blah the rest of your code
Reply
#3

thanks guys for the respond


****** thnx that was exactly what i needed...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)