09.02.2011, 01:55
this is my "OnPlayerRequestClass" Code but some times idk when players accounts will go all crazy and it will say "You are not logged in" I dont know whats wrong it started when i tryed to skip the class selection with a 5 millisecond timer
Код:
public OnPlayerRequestClass(playerid, classid) { SetTimerEx("SkipSpawn",5,0,"i",playerid); if(IsPlayerNPC(playerid)) { printf("NPC: OnPlayerRequestClass: %d", playerid); return 1; } if(gPlayerLogged[playerid] == 0) { TogglePlayerSpectating(playerid, 1); return 1; } SetupPlayerForClassSelection(playerid); if(gPlayerSpawned[playerid] == 1) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pFMember] != 255) { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } else { PlayerInfo[playerid][pModel] = PedSkins[classid][0]; } } else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } return 1; }