Aplicatie care reporneste server dupa ce se blocheaza(win)

Aici vei gasi toate tutoriale care te va interesa in legatura cu serverul tau

Aplicatie care reporneste server dupa ce se blocheaza(win)

Mesajde catchMe » Sâm Mar 13, 2010 11:25 am

Varianta I :

Cream un fisier Text Document introducem in el -->
Cod: Selectaţi tot
@echo on
cls
echo Protejeaza Serverul(hlds)de blokare.
echo Daca vrei sa inchizi serveru si acest script , inchide consola(hlds) si tasteaza Y urmat de enter.
title Server Fara Sa Se Blocheze
:hlds
echo (%time%) serverul a pornit.
start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx
echo (%time%) ATENTIE: serverul a cazut sau a fost oprit. il restartez.
goto hlds

si apoi il salvam sub numele server.bat
Cod: Selectaţi tot
start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx




Varianta II :


Cream un fisier Text Document introducem in el -->
Cod: Selectaţi tot
@echo off
cls
echo Protejeaza Serverul(hlds)de blokare.
echo Daca vrei sa inchizi serveru si acest script , inchide consola(hlds) si tasteaza Y urmat de enter.
title Server Fara Sa Se Blocheze
:hlds
echo (%time%) serverul a pornit.
start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx
echo (%time%) ATENTIE: serverul a cazut sau a fost oprit. il restartez.
goto hlds

si apoi il salvam sub numele server.bat

Cod: Selectaţi tot
start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx

<aceasta> echo on / echo off ( off - sa nu apara acele mesaje , on - sa apara )



Varianta III :


Pentru cei care nu mai doresc deloc acele faze cu "echo" , pot face cum arata mai jos
Cod: Selectaţi tot
@echo off
cls
title Autorestart
:hlds
echo (%time%) Started
start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx
echo (%time%) Crashed, restarting.
go to hlds

Si batchul nu trebuie pus neaparat in folderul cu hlds.exe

Poti inlocui :
Cod: Selectaţi tot
start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx

CU :
Cod: Selectaţi tot
start /wait /high C:\HLDS\hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx [ sau calea spre hlds.exe ]



Sper sa va foloseasca
:br Rullz
Avatar utilizator
catchMe
Power Member
Power Member
 
Mesaje: 84
Membru din: Vin Mar 05, 2010 11:54 am
Localitate: Constanta

Înapoi la Tutoriale Servere de Counter-Strike

Cine este conectat

Utilizatorii ce navighează pe acest forum: Niciun utilizator înregistrat şi 1 vizitator