Jump to content
Coupex

Intrebare - Redirecte Counter strike 1.6

Recommended Posts

Posted

Salutare,

Avand in vedere ca multi dintre voi se pricep la programare, setari si alte minunatii...., intrebarea mea banuiesc ca e banala dar totusi foarte utila ptr. mine.

dupa cum spune si titlul ma chinui cu niste redirecte care sunt ok dar au un bug ceva...

Le deschid si merg, e totul ok numai ca dupa o perioada nu imi mai merge nici un browser, nu mai incarca nici o pagina... parca mananca toata banda. Imediat ce le inchid merge mozila si IE fara probleme. O sa dau un "paste" la setarile in fisierul .bat care pornesc redirectele.


@echo off
:: --- Modificati aici --------------------------------

:: Numarul de Redirecte
set /a max_redirects = 30

:: Delay intre redirecte
set /a start_delay = 1

:: Starting port
set /a starting_port = 29000



:: ----------------------------------------------
:: Nu modificati in randurile mai jos !
::
color B0
title Coupex REDIRECT START %max_redirects% redirects.
echo ============================================================================
echo START: %max_redirects% redirecte, PORT START: %starting_port%.
echo ============================================================================

FOR /F "tokens=1 delims=" %%A IN ('ipconfig ^| find /I /C "RDS"') DO SET RDS=%%A
IF "%RDS%"=="1" (
FOR /F "tokens=2 delims=:" %%A IN ('ipconfig ^| find /I "IP"') DO SET IPARG=+ip^ %%A
)

set /a port_add = %starting_port%
set /a port_end = %starting_port% + %max_redirects%
set /a sv_add = 1
:start

start /min /normal hlds.exe -console -game cstrike %IPARG% -insecure +sys_ticrate 10000 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg
set /a port_add += 1
set /a sv_add +=1
if %port_add% == %port_end% goto end

ping 1.1.1.1 -n %start_delay% -l 1 -w 2500 >NUL
goto start

:end
echo ============================================================================
echo ======================= Redirectele au fost pornite! =======================
echo ===================== Copyright © 2010 - Coupex ===================
exit

Ar trebui sa modific ceva ca sa nu imi mai blocheze netul ?

Multumesc anticipat!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...