Jump to content

Recommended Posts

Posted

Aplicatie care reporneste serverul cand se blocheaza [Win]

Varianta I:

Cream un fisier Text Document, si introducem in el:

@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 [/code] si apoi il salvam sub numele [b][color=red]server.bat[/color][/b] Adaugati la shortcut-ul serverului:
[code]start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx
Linia de mai sus pune automat serverul la Real Time , scoate consola obisnuita , trece serverul la internet , pune maxplayers 18 , harta cu care va porni serverul va fi de_dust2 . Daca vreti sa schimbati ceva din aceasta linie nu este nici o problema. Varianta II: Cream un fisier Text Document introducem in el:
@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 [/code] si apoi il salvam sub numele[b][color=red] server.bat[/color][/b] Adaugati la shortcut-ul serverului:
[code]start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx
Linia de mai sus pune automat serverul la Real Time , scoate consola obisnuita , trece serverul la internet , pune maxplayers 18 , harta cu care va porni serverul va fi de_dust2. Daca vreti sa schimbati ceva din aceasta linie nu este nici o problema. Sigura diferenta intre varianta I si II este --> 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:
@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.
goto hlds [/code] Si batchul nu trebuie pus neaparat in folderul cu hlds.exe Poti inlocui:
[code]start /wait /high hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx
Cu:
start /wait /high  C:\HLDS\hlds.exe -console -game cstrike +sv_lan 1 +maxplayers 18 +map de_dust2 -nomaster -noipx

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.