This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/scripts/game/beta5/player/library/isRestrained.inc

22 lines
393 B
PHP

<?php
class beta5_player_isRestrained {
function beta5_player_isRestrained($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}
// Checks whether a player is restrained or not
function run($pid) {
$q = $this->db->query("SELECT restrain FROM player WHERE id = $pid");
if (!($q || dbCount($q))) {
return 666;
}
list($r) = dbFetchArray($q);
return $r;
}
}
?>