Exemplo n.º 1
0
 public function on_heat(SR_Player $player, array $args)
 {
     if ($player->hasConst(self::KEY)) {
         $player->unsetConst(self::KEY);
         return $player->message($this->lang($player, 'heat_off'));
         // 			return $player->message('You have totally turned off the heating in this building.');
     } else {
         $player->setConst(self::KEY, 1);
         return $player->message($this->lang($player, 'heat_on'));
         // 			return $player->message('You have totally turned on the heating in this building.');
     }
 }
Exemplo n.º 2
0
 public function rightInTime(SR_Player $player)
 {
     $eta = $player->getConst('__AURIS_TIMEOUT');
     $player->unsetConst('__AURIS_TIMEOUT');
     return Shadowrun4::getTime() < $eta;
 }