PHP Code:
public needsub(id)
{
new admin[32],map[32],cmd[300]
get_mapname (map,31)
copy(cmd,299,"");
get_cvar_string("admin",admin,31)
new team1 = get_cvar_num("Team1-Wins")
new team2 = get_cvar_num("Team2-Wins")
new half = get_cvar_num("half")
format(cmd,299,"NEEDSUB %s %s %s %s %s",map,team1,team2,admin,half)
client_print(0,print_chat,"[Gather] Format of CMD is %s",cmd);
socket_send(bothost,cmd,512)
}
I have this code and when i am pressing .needsub it appears on cleint_print:
Quote:
|
Originally Posted by Server
[Gather] Format of CMD is NEEDSUB de_inferno NEEDSUB de_inferno NEEDSUB de_inferno NEEDSUB de_inferno GaMeMaStEr
|
Why that?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))