SetPlayerTeam bug, or is it me?
#1

Hello, I have a problem with SetPlayerTeam. I believe that it is a bug of SAMP? Because I tried to use many other ways to do this command, but the result is the same - I cant shoot any player either its off or on.

pawn Код:
CMD:tf(playerid, params[])
{
    teamFire = !teamFire;
   
    for (new i; i < MAX_PLAYERS; i++)
    {
        if (!IsPlayerConnected(i)) continue;
       
        SetPlayerTeam(i, (teamFire) ? 37 : 0);
    }
   
    return (true);
}
Reply
#2

Oh, to reset player's team you must use NO_TEAM, not 0. You can lock this one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)