Ejemplo n.º 1
0
 /**
  * Sets rcon password, for future use in Rcon()
  *
  * @param string $Password Rcon Password
  *
  * @return bool True on success, false on failure
  */
 public function SetRconPassword($Password)
 {
     if (!$this->Connected) {
         return false;
     }
     $this->Rcon->Open();
     return $this->Rcon->Authorize($Password);
 }
Ejemplo n.º 2
0
 /**
  * Sets rcon password, for future use in Rcon()
  *
  * @param string $Password Rcon Password
  *
  * @return bool True on success, false on failure
  */
 public function SetRconPassword($Password)
 {
     if (!$this->Connected) {
         return false;
     }
     switch ($this->Socket->Engine) {
         case SourceQuery::GOLDSOURCE:
             $this->Rcon = new SourceQueryGoldSourceRcon($this->Buffer, $this->Socket);
             break;
         case SourceQuery::SOURCE:
             $this->Rcon = new SourceQuerySourceRcon($this->Buffer, $this->Socket);
             break;
     }
     $this->Rcon->Open();
     return $this->Rcon->Authorize($Password);
 }