lwb5-in-2025/scripts/game/beta5/player/library/isRestrained.inc

23 lines
386 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class beta5_player_isRestrained {
2024-12-31 00:50:29 +01:00
public function __construct($lib) {
2016-01-10 11:01:49 +01:00
$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;
}
}
?>