Функция nick4() переехала в класс Nick.

This commit is contained in:
Igor Barkov (iwork)
2020-08-27 15:31:35 +03:00
parent 782aa0632d
commit 0049b2d601
4 changed files with 20 additions and 21 deletions

View File

@@ -211,23 +211,6 @@ function topsethp()
return "top.setHP($user[hp], $user[maxhp], $delay);";
}
function nick4($id, $st)
{
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $id)->fetch_assoc();
if ($user[0]) {
$effect = db::c()->query('SELECT time FROM effects WHERE type = 1022 and owner = ?i', $id)->fetch_assoc_array();
if ($effect) {
$user['level'] = '??';
$user['login'] = '</a><b><i>невидимка</i></b>';
$user['hp'] = '??';
$user['maxhp'] = '??';
}
return "<span onclick=\"top.AddTo('" . $user['login'] . "')\" oncontextmenu=\"return OpenMenu(event," . $user['level'] . ")\" class={$st}>" . $user['login'] . "</span> [" . $user['hp'] . "/" . $user['maxhp'] . "]";
}
return false;
}
function check_proc($u)
{
$r = 100;