1
Nevermind
hm..
  • 2004/8/13 14:02

  • Nevermind

  • Just popping in

  • Posts: 1

  • Since: 2004/8/13


What does this mean ? Is it possible to echo each players team ? [ madquery ]
//
    
function rcon_expand_players() {
        if(!isset(
$this->_players) || sizeof($this->_players)==|| $this->_rcon_password=="" || $this->_rcon_challenge=="")
            return 
0;
        foreach(
$this->_players as $id => $plyr) {
            
$this->_rcon_send("user "".$plyr["Name"].""");
            
$buff=trim($this->_getmore());
            if(
strlen($buff)==0$buff=trim($this->_getmore());
            
$buff=substr($buff,5);
            foreach(
split("n",$buff) as $line) {
                list(
$key,$val)=split("[ ]+",$line);
                if(
$key!="name"$this->_players[$id][$key]=$val;
                
//echo "$key => $val
n";
                
if($key=="model") {
                    if(
preg_match("/(gign|sas|gsg9)/",$val)) $this->_players[$id]["Team"]="CT";
                    elseif(
preg_match("/(terror|arctic|leet|urban)/",$val)) $this->_players[$id]["Team"]="T";
                }
            }
            
ksort($this->_players[$id]);
            
reset($this->_players[$id]);
        }
...

Login

Who's Online

270 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 270


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits