/setallteam
#1

/setallteam

SetPlayerTeam -1

how to set it for everyone?
Reply
#2

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

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)