game/modules_data/moder/v_carcer.php

28 lines
758 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['szatoch'] != 1 && $p['citym1'] != 1) {
$uer = 'У Вас нет прав на использование данного заклятия';
return;
}
$uu = \Core\Db::getRow('select id, login from users where login = ? order by id limit 1', [$_POST['logingo']]);
if (!isset($uu['id'])) {
$uer = 'Персонаж не найден в этом городе';
return;
}
(new \Moderation\Moderation($uu['id']))->unprison();
$uer = "Персонаж {$uu['login']} был выпущен из тюрьмы.";
$cmsg = new ChatMessage();
$cmsg->setRoom($u->info['room']);
$cmsg->setText("[img[items/jail_off.gif]] $uer");
$cmsg->setType(6);
$cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg);