Ejemplo n.º 1
0
 public function getRandomPlayer($only = 'all')
 {
     $back = array();
     foreach (Shadowrun4::getPlayers() as $player) {
         $player instanceof SR_Player;
         if ($player->isHuman() && $only !== 'npc') {
             $back[] = $player;
         } elseif ($player->isNPC() && $only !== 'human') {
             $back[] = $player;
         }
     }
 }
Ejemplo n.º 2
0
 public static function execute(SR_Player $player, array $args)
 {
     if (count($args) === 0) {
         Shadowrap::instance($player)->reply(Shadowhelp::getHelp($player, 'gmn'));
         return false;
     }
     $message = "[Shadowlamb] " . implode(' ', $args);
     foreach (Shadowrun4::getPlayers() as $player) {
         $player instanceof SR_Player;
         $player->message($message);
     }
     return true;
 }