Close SAMP by Server?
#1

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?
Reply
#2

There is no way a server can close a client.
Reply
#3

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

Teleporting to huge negative float values still causes crashes
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)