SA-MP Forums Archive
Close SAMP by Server? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Close SAMP by Server? (/showthread.php?tid=105359)



Close SAMP by Server? - Programie - 28.10.2009

Hi

I have added a few dialogs to my game mode.
But now I have a problem: I want a "Quit" button on the main dialog (The dialog where the player can select actions like "Login" or "Change player name"). I tried it with Kick() but then I can't press Esc to go into the menu and quit the game.

Is it possible to close the game by the server or just allow the Esc-key?


Re: Close SAMP by Server? - dice7 - 28.10.2009

There is no way a server can close a client.


Re: Close SAMP by Server? - Nero_3D - 28.10.2009

But you can try to crash the client with something, dont know whats still working in 0.3


Re: Close SAMP by Server? - dice7 - 28.10.2009

Teleporting to huge negative float values still causes crashes


Re: Close SAMP by Server? - Programie - 28.10.2009

I found the solution for my problem, but not to close SAMP:

The login and register stuff was in the class selection. And I noticed that you can't press Esc while you are in the class selection.
Now I made the player to a spectator and when he clicks on "Quit" he can press Esc.
The class selection appears only if he/she is logged in.


Quote:
Originally Posted by dice7
Teleporting to huge negative float values still causes crashes
lol some people try to fix bugs and you try to use them.