SA-MP Forums Archive
spawn player without having to press spawn - 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)
+--- Thread: spawn player without having to press spawn (/showthread.php?tid=416039)



spawn player without having to press spawn - lean1337 - 15.02.2013

Hi, basicly I want so when you get the login box, when you have typed your password you automaticly get spawned, currently I have under ongamemodeinit AddPlayerClass(265,1525.7687,-1667.9515,6.2188,275.3775,0,0,0,0,0,0); //

and the login dialog

SpawnPlayer(playerid);

when typing the password the player does not get spawned instead have to press the SPAWN button.


Re: spawn player without having to press spawn - Da_Noob - 15.02.2013

Try to use SetSpawnInfo & then SpawnPlayer, I've used that before and it worked for me.


Re: spawn player without having to press spawn - caki - 15.02.2013

I use these under my login function. Try it

SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 );
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);


Re: spawn player without having to press spawn - gilpenner - 15.02.2013

I use a settimerex


Re: spawn player without having to press spawn - lean1337 - 15.02.2013

Works! Thanks alot guys!