Restarting Server

Started by MEGAMIND, Jul 20, 2016, 10:04 AM

Previous topic - Next topic

MEGAMIND

how to restart a server when in game ?

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

how to make a restart cmd

MEGAMIND

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

MEGAMIND

Oops still not solved????

Cool

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

MEGAMIND

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


MEGAMIND