08.08.2018, 09:55
This is how i load team:
When the player has logged in:
(I use SpawnPlayer for autologin to skip directly class selection).
And on OnPlayerSpawn i have this:
@DerickClark: I save the ID.
When the player has logged in:
pawn Код:
SetSpawnInfo(playerid, Player[playerid][PlayerTeam], Player[playerid][Skin], 0, 0, 0, 0, 0, 0, 280, 0, 0, 0);
SpawnPlayer(playerid);
And on OnPlayerSpawn i have this:
pawn Код:
SetPlayerTeam(playerid,Player[playerid][PlayerTeam]);