Advertisement
Guest User

asdasd

a guest
Aug 15th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @echo off
  2. title Unturned Server Restarter
  3. echo Server Batch by :: Mage ::
  4.  
  5. :loop
  6. echo (%time%) Loot Resetting...
  7. start /d "C:\ProgramFiles\Steam\SteamApps\common\Unturned\" Unturned.exe -nographics -pei -normal -nosync -pvp -port:25444 -players:12 -sv -batchmode
  8. for /f "tokens=2" %%x in ('tasklist ^| findstr Unturned.exe') do set PIDTOKILL=%%x
  9. echo (%time%) Loot Reset.
  10. echo (%time%) Server is online.
  11. echo (%time%) Server Loot Resetting in 2 Hours.
  12. timeout /t 10 >null
  13. echo (%time%) Server Loot now resetting . . .
  14. taskkill /F /PID %PIDTOKILL%
  15.  
  16.  
  17. goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement