SA-MP Forums Archive
Custom Class Selection Spawn Bug. - 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: Custom Class Selection Spawn Bug. (/showthread.php?tid=618157)



Custom Class Selection Spawn Bug. - vassilis - 02.10.2016

I have made a custom class selection. I am avoiding Requestclass using TogglePlayerSpectating.

After that I am using a textdraw to choose to get spawned. After that They suppose to get spawned with skin id 108 but they get spawned with a cop skin and they actually get spawned about 50thousand more feets in the air.. Obviously totally bugged.. if i use my cmd /ls to get teleported it kicks me.

How to spawn my player after an enabled spectator mode?
I already used Spectating mode toggled to false and then spawn but it it doesnt spawn him.


Re: Custom Class Selection Spawn Bug. - Gammix - 02.10.2016

You have to use TogglePlayerSpectating and set it to false before spawning the player.


Re: Custom Class Selection Spawn Bug. - vassilis - 02.10.2016

Quote:
Originally Posted by Gammix
Посмотреть сообщение
You have to use TogglePlayerSpectating and set it to false before spawning the player.
Gammix Sorry i just re-edit my post. I did but didn't really work out..


Re: Custom Class Selection Spawn Bug. - SickAttack - 02.10.2016

Set the player's spawn info, toggle spectating mode off and spawn the player when they request a class (callback).


Re: Custom Class Selection Spawn Bug. - vassilis - 02.10.2016

So should i completely remove spectating mode from REQUEST class and add a timer of 1 milisecond to spawn player?


Re: Custom Class Selection Spawn Bug. - SickAttack - 02.10.2016

Toggling spectating mode off should be used to send the player to the default class selection, do your things there, and spawn the player.


Re: Custom Class Selection Spawn Bug. - vassilis - 02.10.2016

Found the solution i had put two times spectate enabled and disabled it just once.. Thank you both for help!