SA-MP Forums Archive
Manage server from outside - 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: Manage server from outside (/showthread.php?tid=464517)



Manage server from outside - therainycat - 17.09.2013

Hi there.
Does anybody know, how to handle server console input?
I need to call some functions, before I shutdown the server - I can't just close the server console, some data will be lost. Is it possible to call my own function from console?


Re: Manage server from outside - Vince - 17.09.2013

That's why the 'exit' command exists. This calls OnGameModeExit before shutting down.


Re: Manage server from outside - therainycat - 17.09.2013

I tried, but sometimes it works badly for me (I save data to MySQL, multithreaded).
And if i need just to run some commands, without shutting down the server?


Re: Manage server from outside - therainycat - 22.09.2013

OK, I have an idea, how to do that.

If someone want to know, how - send me PM.