SA-MP Forums Archive
Help please - 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: Help please (/showthread.php?tid=618264)



Help please - tharvin - 03.10.2016

I added a register system..If someone press a quit while the login system process it shows server closed connection..
but thats not my problem..the issue is when it shows server closed connection and someone presses Esc..its not showing up the esc menu which regularly shows while ig..but ig its working

PLEASE HELP


Re: Help please - MattTucker - 03.10.2016

Tharvin, there's a thing called dialogs. It appears in-game as a little box, when you press ESC you exit out of the dialog, but if you press ESC twice (while having a dialog on your screen) it will show you the pause menu.

However, in your case - according to your script - when you exit out of the registration dialog it returns a function "Kick(id);" which kicks out of the server.

Try logging in to your account and then press ESC once (make sure you have no dialogs showing on your screen) and the pause menu will show up.


Re: Help please - tharvin - 03.10.2016

Quote:
Originally Posted by MattTucker
Посмотреть сообщение
Tharvin, there's a thing called dialogs. It appears in-game as a little box, when you press ESC you exit out of the dialog, but if you press ESC twice (while having a dialog on your screen) it will show you the pause menu.

However, in your case - according to your script - when you exit out of the registration dialog it returns a function "Kick(id);" which kicks out of the server.

Try logging in to your account and then press ESC once (make sure you have no dialogs showing on your screen) and the pause menu will show up.
Yeah but i want it to show after the player kicked


Re: Help please - Konstantinos - 03.10.2016

You can't do anything about that, it's a client thing. When it closes the connect to the server, ESC menu cannot be shown and /q is the only.


Re: Help please - MattTucker - 03.10.2016

I don't know if I got you right, but once the player is kicked you can't do anything to him as he's no longer connected. Also, I don't believe you can force the pause menu on a player.