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
#2

can i see the skipspawn function
Reply
#3

here
Quote:

public SkipSpawn(playerid)
{
SpawnPlayer(playerid);
return 1;
}

Reply
#4

this is the public OnPlayerRequestClass(playerid, classid)

show us your
public OnPlayerSpawn(playerid)
Reply
#5

here i took everything out from it because it was all buged before this but here

Код:
public OnPlayerSpawn(playerid)
{
return 1;
}
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)