25.5.2013 08:06
what we have to change to hide players ip on server players list..........i don't want that admins managing the server see the players ips..................
$servers[] = 'cod2 michael test';
$servers[] = 'cod2 rastman test';
$servers[] = 'cod2 michael Server';
$servers[] = 'cod2 rastman Test';
$list_of_users[] = 'michael 1234567 0 en';
$list_of_users[] = 'rastman 1234567 0 en';
//$servers[] = 'cod2 michael Server';
$servers[] = 'cod2 rastman Test';
$servers[] = 'cod2 rastman Test';
$servers[] = 'cod2 michael Server';
// exclude servers belonging to other users
if (($match_user_and_server) && (count($servers)>0) && ($_SESSION['sess_rcon_user']!='admin'))
{
foreach ($servers as $n=>$v)
{
if (! (preg_match('`^[^ ]* '.preg_quote($_SESSION['sess_rcon_user'], '`').'`si', $v)==1))
{unset($servers[$n]);}
}
}
// exclude servers belonging to other users
if (($match_user_and_server) && (count($servers)>0) && ($_SESSION['sess_rcon_user']!='admin'))
{
foreach ($servers as $n=>$v)
{
if (! (preg_match('`^[^ ]* '.preg_quote($_SESSION['sess_rcon_user'], '`').'`si', $v)==1))
{unset($servers[$n]);}
}
$servers = array_values($servers);
}
$custom_cmds[] = '*Ban'; //just insert this code to each player (begins with *)