SA-MP Forums Archive
How Can reset a players team? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How Can reset a players team? (/showthread.php?tid=344685)



How Can reset a players team? - Torus - 22.05.2012

Guys i have got a prob i have a team dm so i added setplayerteam and all so that one team member cannot kill the same teammember so.. i have different dms in my server so when i do /leavedm from that teamdm my team remains same and other players who were in my team also have same team number and when i join individual dm they cannot kill me nor i cannot kill them so can anybody help me with /leavedm that when they leave a dm their team resets and they can kill each other

+rep


Re: How Can reset a players team? - Torus - 22.05.2012

Can Any One Help Me Please??


Re: How Can reset a players team? - Vince - 22.05.2012

http://simple.wikipedia.org/wiki/Punctuation


Re: How Can reset a players team? - MP2 - 22.05.2012

To reset a player's team, just do

pawn Код:
SetPlayerTeam(playerid, playerid);
Then everyone gets their own team, and can kill eachother.


Re: How Can reset a players team? - Torus - 22.05.2012

Please Stay On Topic Vince If you can help then only post something dont post anything rubbish i am in a hurry so i typed like that understand , if u cant help the dont post. SIMPLE!


Re: How Can reset a players team? - Torus - 22.05.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
To reset a player's team, just do

pawn Код:
SetPlayerTeam(playerid, playerid);
Then everyone gets their own team, and can kill eachother.
Thanks For Help Repped!


Re: How Can reset a players team? - MP2 - 22.05.2012

Don't double post. Learn to use the modify button.

You need 50 posts to give reputation.


Re: How Can reset a players team? - iggy1 - 22.05.2012

To reset a players team properly do this.

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



Re: How Can reset a players team? - MP2 - 22.05.2012

Or that, yeah. Never knew about that.