SetPlayerTeam prob
#1

hi i have a filterscript that has two teams however when they leave the area (dmzone) they will still be in the team and wont be able to kill eachother, is there a way to reset the players team like pass -1 in SetPlayerTeam maybe? or even a simpler way?

I need them taking out of all teams(when they leave the area).

hope u understand im shit at explaining things lol


Edit: lol i thought of a way might not work as long as i use team ids 501+ we'll see its probably not necesary as theres probably a better way.

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerTeam(playerid,playerid);
    return 1;
}
lol that made me laugh but will probably work (i hope) then on the exit command i add SetPlayerTeam(playerid,playerid);

If anyone knows a better way plz tell me.
Thanks in advance
Reply
#2

I use this in my gang system, works good, give it a try. Found the define in one of the SA-MP includes. (-1 works also...)

pawn Код:
SetPlayerTeam(playerid, NO_TEAM);
Reply
#3

Nice1 m8 doesn't give erors should b good alot better than my shyte
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)