12.03.2009, 18:54
I noticed there was no tutorial on a server restarter for Windows, so here is one
A restarter on Windows is much simpler than on Linux. Just follow these instructions:
Step 1
Create a file called start.bat in your server folder
Step 2
In that file, write in these contents:
Change samp-server.exe to the name of your server executable if you've changed its name
Done
Thats it! Now, just run start.bat instead of samp-server.exe. You can still type commands into the DOS window. If the server closes though, it will restart instantly.
Note
If you run start.bat, and you get spammed by messages in the DOS window, it probably means you haven't correctly named your server executable in start.bat.
Also note that typing "exit" in the server window will make the server restart instead of closing. To close it, you must stop the start.bat process by pressing the [X] button.
A restarter on Windows is much simpler than on Linux. Just follow these instructions:
Step 1
Create a file called start.bat in your server folder
Step 2
In that file, write in these contents:
Code:
:START samp-server.exe GOTO START
Done
Thats it! Now, just run start.bat instead of samp-server.exe. You can still type commands into the DOS window. If the server closes though, it will restart instantly.
Note
If you run start.bat, and you get spammed by messages in the DOS window, it probably means you haven't correctly named your server executable in start.bat.
Also note that typing "exit" in the server window will make the server restart instead of closing. To close it, you must stop the start.bat process by pressing the [X] button.