Player Spawns not working
#1

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;
}
Reply


Messages In This Thread
Player Spawns not working - by darkknight123 - 09.02.2011, 01:55
Re: Player Spawns not working - by (SF)Noobanatior - 09.02.2011, 04:11
Re: Player Spawns not working - by darkknight123 - 09.02.2011, 11:36
Re : Player Spawns not working - by Amine_Mejrhirrou - 09.02.2011, 12:14
Re: Player Spawns not working - by darkknight123 - 09.02.2011, 20:48
Re: Player Spawns not working - by darkknight123 - 10.02.2011, 00:18

Forum Jump:


Users browsing this thread: 7 Guest(s)