Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: heekz.shadow on June 16, 2011, 09:21:39 pm

Title: [EXCLUSIVE] How to make an automatic restart file?
Post by: heekz.shadow on June 16, 2011, 09:21:39 pm
Well, today I gonna show you how to make a Auto-Restart for servers. This is the output method
First, create a restart.txt file and paste this code in it
Code: [Select]
@echo off
TASKKILL /F /IM "vcmp-svr.exe"
CD "Location"
start vcmp-svr.exe

IMPORTANT: Rename Location with your target-zone of your server E.g: "C:\MyOwnServer" and make sure that your server executable is called vcmp-svr.exe ATTENTION: Not vcmp-srv.exe, it's vcmp-svr.exe [See the svr - srv ]

ATTENTION: This don't starts the server,just shuts it down and restart and works as a starter too but it won't have what to close so it may cause bugs.

then change the extension of .txt in to .bat

Run it and have fun!

Coded in exclusivity by Shadow
Here to make VC-MP better.
Title: Re: [EXCLUSIVE] How to make an automatic restart file?
Post by: Madara on June 16, 2011, 10:32:14 pm
Well, today I gonna show you how to make a Auto-Restart for servers. This is the output method
First, create a restart.txt file and paste this code in it
Code: [Select]
@echo off
TASKKILL /F /IM "vcmp-svr.exe"
CD "Location"
start vcmp-svr.exe

IMPORTANT: Rename Location with your target-zone of your server E.g: "C:\MyOwnServer" and make sure that your server executable is called vcmp-svr.exe ATTENTION: Not vcmp-srv.exe, it's vcmp-svr.exe [See the svr - srv ]

ATTENTION: This don't starts the server,just shuts it down and restart and works as a starter too but it won't have what to close so it may cause bugs.

then change the extension of .txt in to .bat

Run it and have fun!

Coded in exclusivity by Shadow
Here to make VC-MP better.

I already had seen an in SAMP, and has long i had knowledge of this,  pawn of VCMP not have the ability to auto-restart, and this has no effect on a server, because when you restart (with that method) players who are inside the server disconnects, or lost connection.

This may work for the next version of Pawn, to version 0.4 VCMP.

Greetings ;)
Title: Re: [EXCLUSIVE] How to make an automatic restart file?
Post by: heekz.shadow on June 16, 2011, 11:13:45 pm
You didn't understood. You can make a shortcut of this and this economises space, time and performance. Why? Cuz it is very fast and it runs an unbugged vcmp-svr.exe. Also, it closes all tasks with the name of "vcmp-svr.exe" as you can see at TASKKILL command setted there. You also don't have to go to the same location all the time

It is just good :D
It can be also used as a restartscript for javaservers or javachatrooms
Title: Re: [EXCLUSIVE] How to make an automatic restart file?
Post by: stormeus on June 16, 2011, 11:28:46 pm
Not good for server hosters since it terminates every single instance of VC:MP servers. It also doesn't auto-restart; all it does it close all VC:MP servers, start it, and it's done.
Title: Re: [EXCLUSIVE] How to make an automatic restart file?
Post by: [MKs]WiLsON on June 17, 2011, 11:53:19 am
 its auto start?