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: Spawn Bug (
/showthread.php?tid=434645)
Spawn Bug -
Facerafter - 03.05.2013
Hey,
Im editting a GM but there's a bug with spawning.
If you click the "Spawn" button to fast, You will keep dying inside the hospital over and over.
So I need to remove the "Spawn" button and after logging in you will spawn after 5 seconds or
I got to fix the bug... I got to do atleast one of them...
About the bug I don't know where to search. So if you could give me some directions/hints or a fix for it. Would be great.
About the button.. I searched ****** for it. And found mostly Foreign languages or Very outdated topics that wern't helpfull.
OnPlayerRequestClass
http://pastebin.com/CjhacJdy
OnPlayerSpawn
http://pastebin.com/jYBGCygR
Re: Spawn Bug -
Yashas - 03.05.2013
You can stop(skip) a class selection by TogglePlayerSpectating at OnPlayerConnect then check if the player is registered or not do all the dialog stuff,etc then when you are done TogglePlay... DISABLE it and the class selection will come or if you don't want the class selection at all ,use SetPlayerSpawnInformation.It will spawn with the data you provide.
There is no way you can remove that Spawn Button out of CS Screen, you can either skip the CS or use the CS no modify.
Re: Spawn Bug -
Facerafter - 03.05.2013
I dont think that will solve it, If it toggles of after the dialogs they still can click the Spawn button fast.
Re: Spawn Bug -
Facerafter - 03.05.2013
Bump - Someone else?