SA-MP Forums Archive
Skip Skin selection if logged? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skip Skin selection if logged? (/showthread.php?tid=246126)



Skip Skin selection if logged? - -Rebel Son- - 03.04.2011

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?


Re: Skip Skin selection if logged? - PinkFloydLover - 03.04.2011

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

That will call the OnPlayerSpawn callback


Re: Skip Skin selection if logged? - -Rebel Son- - 03.04.2011

Didnt work. Still shows skin sleection.


Re: Skip Skin selection if logged? - antonio112 - 03.04.2011

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%