Jump to content

How can you do server automatic restart


Guest Redsoxx

Recommended Posts

Posted

I have a question how can you make the server automatic restart if crashed. thx

Posted

Thanks that was i was talking about I will search google

Posted

on *:TEXT:!start:#:{

if ($nick == yournick) {

/run "C:/program files/mta san andreas/server.exe

}

else .notice $nick error not correct user modes

}

Posted

If this is windows, this is very simple.

1) Right click on the folder where your mtaserver.exe is located

2) Select New > Text Document

3) Open it in notepad

4) Type this in (unsure if its called mtaserver.exe, i really cant remember):

  
:10 
mtaserver.exe 
goto 10 
  

5) Save it and rename the file to RunServer.bat

6) Run the newly created file

This is a horrible way of doing it, you really want to use something like firedaemon and run the server as a system service, but it will do for small servers/home use.

Posted
on *:TEXT:!start:#:{

if ($nick == yournick) {

/run "C:/program files/mta san andreas/server.exe

}

else .notice $nick error not correct user modes

}

Btw, is this working?

Posted

i can load itunes with a command in game with

run iTunes.exe
but a dunno about the server :) i made a music thing that works if a admin is connected to a server and types !next or !back it changes track in itunes for them without quitting :)
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...