20.06.2013, 14:20
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);
}