SA-MP Forums Archive
Spawn button - 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 button (/showthread.php?tid=658291)



Spawn button - Mike861 - 31.08.2018

So the whole idea of mine was to disable the spawn button from functioning if the player presses ESC to close up the login/register dialog once he joins.I've seen that its possible to actually prevent spawn button in class selection from functioning but, i can't find the right thread that solves this question of mine.Could i get a possible example on how to do this?


Re: Spawn button - Shinja - 31.08.2018

TogglePlayerSpectate(playerid, 1) hide the spawn button


Re: Spawn button - Mike861 - 31.08.2018

Quote:
Originally Posted by Shinja
Посмотреть сообщение
TogglePlayerSpectate(playerid, 1) hide the spawn button
I expected someone to say this.No, without hiding spawn button.


Re: Spawn button - Shinja - 31.08.2018

return 0; OnPlayerRequestClass ?


Re: Spawn button - Mike861 - 31.08.2018

Quote:
Originally Posted by Shinja
Посмотреть сообщение
return 0; OnPlayerRequestClass ?
I'll give it a try tomorrow, but even by thinking about it this might work


Re: Spawn button - Mike861 - 01.09.2018

return 0; worked, +rep. @Shinja