0 && $user['vip_time'] > time()) { $abils = db::c()->query('SELECT `id`, `uid`, `sokr`, `zash`, `invisible`, `attack`, `bloodattack`, `sleep30`, `travmoff`, `dontattack`, `unsleep`, `pers_attack` FROM `abils_vip` WHERE `uid` = ?i', $user['id'])->fetch_assoc(); if ($abils['sokr'] > 0) { $r .= '
'; } else { $r .= ''; } if ($abils['zash'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['invisible'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['attack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['bloodattack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['sleep30'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['travmoff'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['dontattack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['unsleep'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['pers_attack'] > 0) { $r .= ''; } else { $r .= ''; } } elseif ($user['vip'] == 0) { $r = 'Вы не вип пользователь ...'; } elseif ($user['vip_time'] <= time()) { $r = 'Вы не вип пользователь ...'; } else { $r = 'Ошибка ...'; } return $r; } function klan_relicts() { global $user; $r = ''; if ($user['klan'] > 0) { $abils = db::c()->query('SELECT `id`, `klan`, `sleep15`, `sleep30`, `closebattle`, `heal20`, `heal35`, `heal50`, `travmoff`, `attack`, `bloodattack`, `death`, `comment`, `openbattle`, `reamdeath`, `clone`, `unclone` FROM `abils_klan` WHERE `klan` = ?i', $user['klan'])->fetch_assoc(); if ($abils['sleep15'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['sleep30'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['closebattle'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['heal20'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['heal35'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['heal50'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['travmoff'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['attack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['bloodattack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['death'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['comment'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['openbattle'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['reamdeath'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['clone'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['unclone'] > 0) { $r .= ''; } else { $r .= ''; } } else { $r = 'Вы не состоите в клане ...'; } return $r; } function user_relicts() { global $user; $r = ''; $abils = db::c()->query('SELECT `id`, `uid`, `sleep15`, `sleep30`, `closebattle`, `heal20`, `heal35`, `heal50`, `travmoff`, `attack`, `bloodattack`, `death`, `comment`, `openbattle`, `reamdeath`, `clone`, `unclone` FROM `abils_user` WHERE `uid` = ?i', $user['id'])->fetch_assoc(); if ($abils['sleep15'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['sleep30'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['closebattle'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['heal20'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['heal35'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['heal50'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['travmoff'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['attack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['bloodattack'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['death'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['comment'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['openbattle'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['reamdeath'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['clone'] > 0) { $r .= ''; } else { $r .= ''; } if ($abils['unclone'] > 0) { $r .= ''; } else { $r .= ''; } if ($user['id'] == 10022 || $user['id'] == 9081) { $r .= ''; } return $r; } if (isset($_GET['use'])) { if ($_GET['use'] == 1) { include('magic/usability_vip/invisible.php'); } elseif ($_GET['use'] == 2) { include('magic/usability_vip/devastate.php'); } elseif ($_GET['use'] == 3) { include('magic/usability_vip/defence.php'); } elseif ($_GET['use'] == 4) { include('magic/usability_vip/attack.php'); } elseif ($_GET['use'] == 5) { include('magic/usability_vip/attack_blood.php'); } elseif ($_GET['use'] == 6) { include('magic/usability_vip/sleep.php'); } elseif ($_GET['use'] == 7) { include('magic/usability_vip/travmoff.php'); } elseif ($_GET['use'] == 8) { include('magic/usability_vip/no_attack.php'); } elseif ($_GET['use'] == 9) { include('magic/usability_vip/un_sleep.php'); } elseif ($_GET['use'] == 10) { include('magic/usability_vip/pers_blood.php'); } } if (isset($_GET['used'])) { if ($_GET['used'] == 1) { include('magic/usability_user/sleep15.php'); } elseif ($_GET['used'] == 2) { include('magic/usability_user/sleep30.php'); } elseif ($_GET['used'] == 3) { include('magic/usability_user/close_battle.php'); } elseif ($_GET['used'] == 4) { include('magic/usability_user/heal20.php'); } elseif ($_GET['used'] == 5) { include('magic/usability_user/heal35.php'); } elseif ($_GET['used'] == 6) { include('magic/usability_user/heal50.php'); } elseif ($_GET['used'] == 7) { include('magic/usability_user/travmoff.php'); } elseif ($_GET['used'] == 8) { include('magic/usability_user/attack.php'); } elseif ($_GET['used'] == 9) { include('magic/usability_user/attack_blood.php'); } elseif ($_GET['used'] == 11) { include('magic/usability_user/note.php'); } elseif ($_GET['used'] == 12) { include('magic/usability_user/open_battle.php'); } elseif ($_GET['used'] == 13) { include('magic/usability_user/reamdeath.php'); } elseif ($_GET['used'] == 14) { include('magic/usability_user/clone.php'); } elseif ($_GET['used'] == 15) { include('magic/usability_user/unclone.php'); } } if (isset($_GET['useds'])) { if ($_GET['useds'] == 1) { include('magic/usability_klan/sleep15.php'); } elseif ($_GET['useds'] == 2) { include('magic/usability_klan/sleep30.php'); } elseif ($_GET['useds'] == 3) { include('magic/usability_klan/close_battle.php'); } elseif ($_GET['useds'] == 4) { include('magic/usability_klan/heal20.php'); } elseif ($_GET['useds'] == 5) { include('magic/usability_klan/heal35.php'); } elseif ($_GET['useds'] == 6) { include('magic/usability_klan/heal50.php'); } elseif ($_GET['useds'] == 7) { include('magic/usability_klan/travmoff.php'); } elseif ($_GET['useds'] == 8) { include('magic/usability_klan/attack.php'); } elseif ($_GET['useds'] == 9) { include('magic/usability_klan/attack_blood.php'); } elseif ($_GET['useds'] == 11) { include('magic/usability_klan/note.php'); } elseif ($_GET['useds'] == 12) { include('magic/usability_klan/open_battle.php'); } elseif ($_GET['useds'] == 13) { include('magic/usability_klan/reamdeath.php'); } elseif ($_GET['useds'] == 14) { include('magic/usability_klan/clone.php'); } elseif ($_GET['useds'] == 15) { include('magic/usability_klan/unclone.php'); } } function show_byu($type) { global $user; $type = $type + 20; if ($user['klan'] != '') { $clan = db::c()->query('SELECT `id`, `glava` FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc(); if ($clan['glava'] == $user['id']) { $r = ''; } else { $r = ''; } } else { $r = ''; } return $r; } $is_ = db::c()->query('SELECT `id` FROM `abils_user` WHERE `uid` = ?i', $user['id'])->fetch_assoc(); if (empty($is_['id'])) db::c()->query('INSERT INTO `abils_user` (`uid`) VALUES (?i)', $user['id']); $is_ = db::c()->query('SELECT `id` FROM `abils_vip` WHERE `uid` = ?i', $user['id'])->fetch_assoc(); if (empty($is_['id'])) db::c()->query('INSERT INTO `abils_vip` (`uid`) VALUES (?i)', $user['id']); if (empty($user['klan'])) { $is_ = db::c()->query('SELECT `id` FROM `abils_klan` WHERE `klan` = ?i', $user['klan'])->fetch_assoc(); if (empty($is_['id'])) db::c()->query('INSERT INTO `abils_klan` (`klan`) VALUES (?i)', $user['klan']); } ?>