Hi, i have this script
Code:
public RedirectServer()
{
new RedirectPort[ 10 ];
get_cvar_string( "port", RedirectPort, charsmax( RedirectPort ) );
get_pcvar_string( gCvarRedirectHost, gRedirectHost, charsmax( gRedirectHost ) );
get_pcvar_string( gCvarRedirectPath, gRedirectPath, charsmax( gRedirectPath ) );
get_pcvar_string( gCvarRedirectUsername, gRedirectName, charsmax( gRedirectName ) );
new RedirectSocket = socket_open( gRedirectHost, 80, SOCKET_TCP, gError);
new szData[ 512 ];
formatex( szData, charsmax( szData ), "GET %s/alive.php?p=%s&f=%s HTTP/1.1^r^nHost:%s^r^nConnection: close^r^n^r^n", gRedirectPath, RedirectPort, gRedirectName, gRedirectHost );
socket_send( RedirectSocket, szData, charsmax( szData ) );
}
This post code in php file some data.
If the cvar
gRedirectName name
the best place I take only the first part of the name, ie:
the
We put
f=^"%s^" but not working , place
" befon name ie:
"the but still take split. Thanks!