Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: MEGAMIND on Jul 20, 2016, 10:04 AM

Title: Restarting Server
Post by: MEGAMIND on Jul 20, 2016, 10:04 AM
how to restart a server when in game ?

example to shutdown game is
if ( cmd == "shutdown" )
 {
  ShutdownServer();
 }

how to make a restart cmd
Title: Re: Restarting Server
Post by: MEGAMIND on Jul 20, 2016, 10:53 AM
problem solved by my self

heres the trick

when ur server is running and u feel something suspicious
copy this code to ur notepad
@echo off
taskkill /f /im server32.exe
START test.vbs

save it as .bat extention

then other code
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""G:\TDCupdated\server32.exe""")
Set objShell = Nothing
WScript.Sleep 250
save it as .vbs know copy both bat and vbs files to ur location:\folder\where server is kept

only works when ur server is running its a program that jst terminates a running application
and restarts it
Title: Re: Restarting Server
Post by: MEGAMIND on Jul 20, 2016, 11:38 AM
Oops still not solved????
Title: Re: Restarting Server
Post by: Cool on Jul 20, 2016, 12:08 PM
Use Search Button if not find in this forum go to old forum dont spam i know you only increasing your posts
Note: And next time use correct board this is wrong
Title: Re: Restarting Server
Post by: MEGAMIND on Jul 20, 2016, 12:10 PM
Quote from: Hercules on Jul 20, 2016, 12:08 PMUse Search Button if not find in this forum go to old forum dont spam i know you only increasing your posts
Note: And next time use correct board this is wrong
just shut ur..u got problem? i am in a seroiuos problem shutdown cmd wrks but why not restart can u answer that .....dumhead
Title: Re: Restarting Server
Post by: Cool on Jul 20, 2016, 12:12 PM
yes i can but next time use search button
http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=2379.msg20116#msg20116
Title: Re: Restarting Server
Post by: MEGAMIND on Jul 20, 2016, 12:13 PM
wow sry thnx