20.01.2015, 02:49
pawn Код:
public OnAccountLoad(playerid)
{
//Your stuffs
g_PlayerLoggedIn[playerid] = true; //You may already have something similar to this.
return 1;
}
public OnPlayerRequestSpawn(playerid) //The callback called before player getting spawned
{
if(g_PlayerLoggedIn[playerid])
SetSpawnInfo(playerid, g_SavedTeam[playerid], g_SavedSkin[playerid], ...); //Set the spawn info, make sure you store the class information to use them in this function.
return 1;
}