Send a message once the server shuts down/crashes
#1

Hi,
I'm trying to make the server send a message to the discord channel once it shuts down.

Currently I'm testing it on my local PC and I tried to demo a crash by closing the terminal that runs the server and the message isn't sent to the discord channel(tried calling it on ongamemodeexit but obviously it fails to catch any server crashes), any alternatives?
Reply
#2

This has nothing to do with samp scripting, but you could possibly create a 3rd party app (node for example) which pings the server + port every 10 seconds lets say, if it fails to get a response, then you know it's down.

OnGameModeExit's behavior is very inconsistent - especially if you don't peacefully shut down the samp server process.
Reply
#3

You can use discord connector to send a discord message from your script, just send the closing down message with the OnGameModeExit callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)