SA-MP Forums Archive
setplayerteam - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: setplayerteam (/showthread.php?tid=220457)



setplayerteam - jaksimaksi - 03.02.2011

i setted player team, the friendlyfire is off and u cant kill ur mates, but how to when player types /leave gets able to kill everyone?


Re: setplayerteam - Steven Paul - 03.02.2011

what


Re: setplayerteam - RoiKy - 03.02.2011

you can do something like that
pawn Код:
SetPlayerTeam(playerid,playerid+1);



Re: setplayerteam - SkizzoTrick - 03.02.2011

Or you could just create a Team that is able to attack everyone like:

/leave
{
SetPlayerTeam(playerid,1000);
return 1;
}


Re: setplayerteam - jaksimaksi - 04.02.2011

maybe there is a better suggestion?


Re: setplayerteam - jaksimaksi - 04.02.2011

Quote:
Originally Posted by RoiKy
Посмотреть сообщение
you can do something like that
pawn Код:
SetPlayerTeam(playerid,playerid+1);
i have about 10 teams... If player joins team 1, and writes /leave he gets team 2...
this script is bad




Quote:
Originally Posted by SkizzoTrick
Посмотреть сообщение
Or you could just create a Team that is able to attack everyone like:

/leave
{
SetPlayerTeam(playerid,1000);
return 1;
}
If player writes /leave he gets to team 1000... And if other players will type they get to 1000 team and cant kill each other to -.-

Any suggestions how to turn off setplayerteam?