spawn player without having to press spawn
#1

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

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

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);
Reply
#4

I use a settimerex
Reply
#5

Works! Thanks alot guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)