SA-MP Forums Archive
/setallteam - 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: /setallteam (/showthread.php?tid=472165)



/setallteam - Superhot - 27.10.2013

/setallteam

SetPlayerTeam -1

how to set it for everyone?


Re: /setallteam - Scrillex - 27.10.2013

It's only my thought idk if that will work...
pawn Код:
for (new i = 0; i != MAX_PLAYERS; ++i)
{
    SetPlayerTeam(i, -1);
}



Re: /setallteam - Superhot - 27.10.2013

pawn Код:
CMD:fa(playerid)
{
    for (new i = 0; i != MAX_PLAYERS; ++i)
{
    SetPlayerTeam(i, -1);
}
    return 1;
 }
?


Re: /setallteam - Danialdano - 27.10.2013

pawn Код:
CMD:fa(playerid)
{
    for (new i = 0; i != MAX_PLAYERS; ++i)
    {
       SetPlayerTeam(i, -1);
    }
    return 1;
 }
Like this


Re: /setallteam - Konstantinos - 27.10.2013

I believe it won't set the team to -1 and it will wrap the value in bounds.

In case you want to set the player's team to none (I think you do), set it to 255 or NO_TEAM.