SA-MP Forums Archive
Instant Spawn problems - 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: Instant Spawn problems (/showthread.php?tid=259118)



Instant Spawn problems - kin - 03.06.2011

Hello SA-MP community, today i come to you with a rather easy problem. I have tried to do this myself, but i do not know how to go about it. If you guys recall, when you make a registration system, the spawn interface pops up. I want to know a way to instantly spawn the player, thus avoiding this situation.



Any solutions?


Re: Instant Spawn problems - Markx - 03.06.2011

Maybe SpawnPlayer(playerid); ?


Re: Instant Spawn problems - kin - 03.06.2011

Yes, i know the function. Sadly, it does not work where i put it(in the registration/login dialog).


Re: Instant Spawn problems - Hobod - 03.06.2011

Well i do this in my script, i call spawnplayer in the OnPlayerRequestClass callback.
Works fine for me.
Where are you doing it?


Re: Instant Spawn problems - kin - 04.06.2011

After the player registers their account, or logs in. I tried your way, but it does not work. I will post a video on what it does.


Re: Instant Spawn problems - jonrb - 04.06.2011

TogglePlayerSpectating(playerid,false);
Should spawn them. If it doesn't, use
TogglePlayerSpectating(playerid,true);
just before it.


Re: Instant Spawn problems - Markx - 04.06.2011

Well, i cannot help you without the code.


Re: Instant Spawn problems - kin - 04.06.2011

The code is not necessary... and i will try that jonrb


Re: Instant Spawn problems - kin - 05.06.2011

Ok so, where would i put TogglePlayerSpectating, and Spawnplayerid to make it work?