Skip Skin selection if logged?
#1

Ok, so i got this auto login, And even though i put spawnplayer on it. It still takes me to the skin selection.

Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid, 10);
    SetPlayerPos(playerid, 379.39, -71.27, 1001.50);
    SetPlayerFacingAngle(playerid, 68.73);
    SetPlayerCameraPos(playerid, 378.36, -70.85, 1002.39);
    SetPlayerCameraLookAt(playerid, 383.23, -72.00, 1001.43);
	return 1;
}
theres my class request function. How can i bypass it if the players logged in?
Reply
#2

Wherever you put the auto login part, put underneath it,
OnPlayerSpawn(playerid);

That will call the OnPlayerSpawn callback
Reply
#3

Didnt work. Still shows skin sleection.
Reply
#4

Use these 2 functions:

https://sampwiki.blast.hk/wiki/SetSpawnInfo
https://sampwiki.blast.hk/wiki/SpawnPlayer

First, you must SetSpawnInfo and then SpawnPlayer(playerid). it`ll work 100%
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)