SA-MP Forums Archive
Player not spawning after login. - 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: Player not spawning after login. (/showthread.php?tid=455397)



Player not spawning after login. - Andriensis - 01.08.2013

The player doesn't spawn. I scripted a lot of gamemode but this is the first time that it happens.
After the dialog login I put a SpawnPlayer(playerid) but the player doesn't spawn.
After onplayerclassselection there is SpawnPlayer(playerid); and also after onplayerrequestspawn.

Thanks for the help.


Re: Player not spawning after login. - arjanforgames - 01.08.2013

Try SetPlayerSpawnInfo too.


Re: Player not spawning after login. - Andriensis - 01.08.2013

Quote:
Originally Posted by arjanforgames
Посмотреть сообщение
Try SetPlayerSpawnInfo too.
What? Well..
I didn't explain it good.
The player spawn but the "spawn bar" appears. That one with the button "Spawn" and the <- and ->.
If I press Spawn the player spawn but I don't want the "spawn bar" to appear.


Re: Player not spawning after login. - Firewire - 01.08.2013

Try setting "SpawnPlayer(playerid);" on a timer of 500ms or something and try it from there.

If that doesn't work, post some code examples.


Re: Player not spawning after login. - Yashas - 01.08.2013

Have you enabled "TogglePlayerSpectating" then disable it or else you won't spawn!!
Try TogglePlayerSpectating(playerid,false); when you want the player to spawn.


Re: Player not spawning after login. - Andriensis - 01.08.2013

Nothing of this works.