lib = $lib; $this->db = $this->lib->game->db; } public function run($team, $player) { // List all players in the team $q = $this->db->query( "SELECT id FROM player WHERE alliance=$team AND id <> $player" ); if (!($q && dbCount($q))) { return; } // Send a message to each player while ($r = dbFetchArray($q)) { $this->lib->call('message', $r[0], 1, $team, $player); } } } ?>