PDA

View Full Version : SetPlayerTeam bug, or is it me?


BaubaS
20/06/2013, 02:20 PM
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.

CMD:tf(playerid, params[])
{
teamFire = !teamFire;

for (new i; i < MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(i)) continue;

SetPlayerTeam(i, (teamFire) ? 37 : 0);
}

return (true);
}

BaubaS
20/06/2013, 02:59 PM
Oh, to reset player's team you must use NO_TEAM, not 0. You can lock this one.