'Silver', 2 => 'Gold', 3 => 'Platinum'); if($time > 10) { $srok = 'Бессрочно.'; } else { $srok = $time.' мес.'; } if($user['align'] != 2.99 && $user['login'] != "father") { echo 'Вам не доступна данная привелегия ...'; } elseif(!isset($us['id'])) { echo 'Персонаж \''.$_POST['target'].'\' не найден ...'; } elseif($type < 1 && $type > 3) { echo 'Не верный тип аккаунта ...'; } else { if($us['vip'] > 0 && $us['vip_time'] > time()) { if($type == 1) { if($us['vip'] == 1) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 1; $vip['attack'] = 1; $vip['bloodattack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "0", `dontattack` = "0", `travmoff` = "0", `unsleep` = "0", `pers_attack` = "0"'; mysql_query('UPDATE `users` SET `vip` = 1, `vip_time` = "'.$afected.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'обновлён'; $add = 'обновил'; } elseif($us['vip'] == 2) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 2; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 1; $vip['travmoff'] = 1; $vip['unsleep'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "0"'; mysql_query('UPDATE `users` SET `vip` = 1, `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'выдан'; $add = 'присвоил'; } elseif($us['vip'] == 3) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 3; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 2; $vip['travmoff'] = 1; $vip['unsleep'] = 2; $vip['pers_attack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "'.$vip['pers_attack'].'"'; mysql_query('UPDATE `users` SET `vip` = 1, `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'выдан'; $add = 'присвоил'; } mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1'); echo 'Персонажу '.$us['login'].', '.$t.' '.$types[$type].' аккаунт. Сроком '.$srok.''; if($user['deal'] > 0) { $txt = 'Дилер '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } elseif($user['align'] == 2.99) { $txt = 'Ангел '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } addchp('Внимание! '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}'); } elseif($type == 2) { if($us['vip'] == 1) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 1; $vip['attack'] = 1; $vip['bloodattack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "0", `dontattack` = "0", `travmoff` = "0", `unsleep` = "0", `pers_attack` = "0"'; mysql_query('UPDATE `users` SET `vip` = 2, `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'выдан'; $add = 'присвоил'; } elseif($us['vip'] == 2) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 2; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 1; $vip['travmoff'] = 1; $vip['unsleep'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "0"'; mysql_query('UPDATE `users` SET `vip` = 2, `vip_time` = "'.$afected.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'обновлен'; $add = 'обновил'; } elseif($us['vip'] == 3) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 3; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 2; $vip['travmoff'] = 1; $vip['unsleep'] = 2; $vip['pers_attack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "'.$vip['pers_attack'].'"'; mysql_query('UPDATE `users` SET `vip` = 2, `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'выдан'; $add = 'присвоил'; } mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1'); echo 'Персонажу '.$us['login'].', '.$t.' '.$types[$type].' аккаунт. Сроком '.$srok.''; if($user['deal'] > 0) { $txt = 'Дилер '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } elseif($user['align'] == 2.99) { $txt = 'Ангел '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } addchp('Внимание! '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}'); } elseif($type == 3) { if($us['vip'] == 1) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 1; $vip['attack'] = 1; $vip['bloodattack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "0", `dontattack` = "0", `travmoff` = "0", `unsleep` = "0", `pers_attack` = "0"'; mysql_query('UPDATE `users` SET `vip` = 3, `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'выдан'; $add = 'присвоил'; } elseif($us['vip'] == 2) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 2; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 1; $vip['travmoff'] = 1; $vip['unsleep'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "0"'; mysql_query('UPDATE `users` SET `vip` = 3, `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'выдан'; $add = 'присвоил'; } elseif($us['vip'] == 3) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 3; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 2; $vip['travmoff'] = 1; $vip['unsleep'] = 2; $vip['pers_attack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "'.$vip['pers_attack'].'"'; mysql_query('UPDATE `users` SET `vip` = 3, `vip_time` = "'.$afected.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); $t = 'обновлен'; $add = 'обновил'; } mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1'); echo 'Персонажу '.$us['login'].', '.$t.' '.$types[$type].' аккаунт. Сроком '.$srok.''; if($user['deal'] > 0) { $txt = 'Дилер '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } elseif($user['align'] == 2.99) { $txt = 'Ангел '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } addchp('Внимание! '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}'); } } else { if(isset($vip['id'])) { if($type == 1) { $vip['invisible'] += 1; $vip['attack'] = 1; $vip['bloodattack'] = 1; $sql = '`invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'"'; } elseif($type == 2) { $vip['invisible'] += 2; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 1; $vip['travmoff'] = 1; $vip['unsleep'] = 1; $sql = '`invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'"'; } elseif($type == 3) { $vip['invisible'] += 3; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] += 2; $vip['travmoff'] = 1; $vip['unsleep'] += 2; $vip['pers_attack'] = 1; $sql = '`invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'", `sleep30` = "'.$vip['sleep30'].'", `dontattack` = "'.$vip['dontattack'].'", `travmoff` = "'.$vip['travmoff'].'", `unsleep` = "'.$vip['unsleep'].'", `pers_attack` = "'.$vip['pers_attack'].'"'; } $add = 'Выдал'; mysql_query('UPDATE `users` SET `vip` = "'.$type.'", `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); mysql_query('UPDATE `abils_vip` SET '.$sql.' WHERE `id` = "'.$vip['id'].'" LIMIT 1'); echo 'Персонажу '.$us['login'].', выдан '.$types[$type].' аккаунт. Сроком '.$srok.''; if($user['deal'] > 0) { $txt = 'Дилер '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } elseif($user['align'] == 2.99) { $txt = 'Ангел '.$user['login'].' '.$add.' вам '.$types[$type].' аккаунт, сроком '.$srok.''; } addchp('Внимание! '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}'); } else { if($type == 1) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 1; $vip['attack'] = 1; $vip['bloodattack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'"'; } elseif($type == 2) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 2; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 1; $vip['travmoff'] = 1; $vip['unsleep'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'"'; } elseif($type == 3) { $vip['sokr'] = 1; $vip['zash'] = 1; $vip['invisible'] = 3; $vip['attack'] = 1; $vip['bloodattack'] = 1; $vip['sleep30'] = 1; $vip['dontattack'] = 2; $vip['travmoff'] = 1; $vip['unsleep'] = 2; $vip['pers_attack'] = 1; $sql = '`sokr` = "'.$vip['sokr'].'", `zash` = "'.$vip['zash'].'", `invisible` = "'.$vip['invisible'].'", `attack` = "'.$vip['attack'].'", `bloodattack` = "'.$vip['bloodattack'].'"'; } mysql_query('UPDATE `users` SET `vip` = "'.$type.'", `vip_time` = "'.$n_time.'" WHERE `id` = "'.$us['id'].'" LIMIT 1'); mysql_query('INSERT INTO `abils_vip` SET '.$sql.', `uid` = "'.$us['id'].'"'); echo 'Персонажу '.$us['login'].', выдан '.$types[$type].' аккаунт. Сроком '.$srok.''; if($user['deal'] > 0) { $txt = 'Дилер '.$user['login'].' присвоил вам '.$types[$type].' аккаунт, сроком '.$srok.''; } elseif($user['align'] == 2.99) { $txt = 'Ангел '.$user['login'].' присвоил вам '.$types[$type].' аккаунт, сроком '.$srok.''; } addchp('Внимание! '.$txt, '{[]}'.nick::id($us['id'])->short().'{[]}'); } } }