game/modules_data/moder/usenevid.php

20 lines
543 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if(!defined('GAME'))
{
die();
}
if($p['invis'] == 1)
{
if($u->info['invis']!=1 && $u->info['invis']<time()) {
$uer = 'Вы успешно включили невидимку';
$u->info['invis'] = 1;
}else{
$uer = 'Вы успешно выключили невидимку';
$u->info['invis'] = 0;
}
mysql_query('UPDATE `users` SET `invis` = "'.$u->info['invis'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
}else{
$uer = 'У Вас нет прав на использование данного заклятия';
}
?>