Prevent server CTRL+C closing. -
rt-2 - 23.11.2017
Hi,
Is there a way to block the console from closing when doing CTRL+C.
I know its possible in most language like NodeJS etc..
Thank you,
rt-2
Re: Prevent server CTRL+C closing. -
Sew_Sumi - 23.11.2017
Why are you pressing ctrl-c then?
There's no preventing it.
Re: Prevent server CTRL+C closing. -
rt-2 - 23.11.2017
Quote:
Originally Posted by Sew_Sumi
Why are you pressing ctrl-c then?
There's no preventing it.
|
Because when you click X it doesn't execute OnServerExit,
When you do CTRL+C it does,,,
Maybe there is something I can put in OnServerExit to stop the termination.
Thank you,
rt-2
Re: Prevent server CTRL+C closing. -
Sew_Sumi - 23.11.2017
Quote:
Originally Posted by rt-2
Because when you click X it doesn't execute OnServerExit,
When you do CTRL+C it does,,,
Maybe there is something I can put in OnServerExit to stop the termination.
Thank you,
rt-2
|
There isn't as Ctrl-C is a stop process key combo. It's nothing to do with the server executable, hence why when you use a command in command prompt, and have the command 'hang', you press ctrl-c, and you are able to stop it.
Now really, why on earth are you even pressing ctrl-c in the first instance...
Re: Prevent server CTRL+C closing. -
rt-2 - 23.11.2017
Quote:
Originally Posted by Sew_Sumi
There isn't as Ctrl-C is a stop process key combo. It's nothing to do with the server executable, hence why when you use a command in command prompt, and have the command 'hang', you press ctrl-c, and you are able to stop it.
Now really, why on earth are you even pressing ctrl-c in the first instance...
|
AGAIN, because pressing CTRL+C is how you CCCClose a console application,,, thats how you do it,, if I use the X button (or CTRL+Z on linux), it just kills the server,, when you do CTRL+C the server actually executes the "serverExit" and "filterscriptExit" events and THEN closes....
rt-2
Re: Prevent server CTRL+C closing. -
Sew_Sumi - 24.11.2017
What are you not getting here?
Re: Prevent server CTRL+C closing. -
billy1337samp - 24.11.2017
what is this guy on..
Re: Prevent server CTRL+C closing. -
rt-2 - 24.11.2017
That's actually basic computer, back in the 80's that's what you'd use,, if you guys can't understand CTRL+C to Close an application than you don't understand BASIC computing (no pun intended xD).
rt-2
Re: Prevent server CTRL+C closing. -
Sew_Sumi - 24.11.2017
Quote:
Originally Posted by rt-2
That's actually basic computer, back in the 80's that's what you'd use,, if you guys can't understand CTRL+C to Close an application than you don't understand BASIC computing (no pun intended xD).
rt-2
|
Then there is no preventing it...
Re: Prevent server CTRL+C closing. -
rt-2 - 24.11.2017
Quote:
Originally Posted by Sew_Sumi
Then there is no preventing it...
|
I think most likely a dll plugin would be able to do that,, rather than pawn