Fast_Stone
Умник
PHP:
else if(strcmp(cmd, "/jail", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
tmp = strcharsplit(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "(( Введите: /jail [id] [минуты], /jail id 0 - вытащить из тюрьмы ))");
if(anti[playerid] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "[Анти-Наказание] Вы словили блок на наказание сроком 5 минут.");
giveplayerid = ReturnUser(tmp);
new playa = ReturnUser(tmp);
tmp = strcharsplit(cmdtext, idx);
new money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
format(stringer, sizeof(stringer), "Вы посадили %s в тюрьму", PlayerInfo[playa][pNames]);
SendClientMessage(playerid, COLOR_LIGHTRED, stringer);
Delgun(playa);
ResetPlayerWeapons(playa);
WantedPoints[playa] = 0;
SetPlayerInterior(playa, 6);
PlayerInfo[playa][pInt] = 6;
antiwarn[playerid] += 8;
if(antiwarn[playerid] >= 30 && anti[playerid] == 0) anti[playerid] = 1, antiwarn[playerid] = 300;
SetPPos(playa,264.1425,77.4712,1001.0391);
SetPlayerFacingAngle(playa, 263.0160);
PlayerInfo[playa][pJailed] = 1;
PlayerInfo[playa][pMestoJail] = 1;
PlayerInfo[playa][pJailTime] = money*60;
format(stringer, sizeof(stringer), "Вы были посажены в тюрьму администратором на %d минут(ы)", money);
SendClientMessage(playa, COLOR_LIGHTRED, stringer);
}
return true;
}
}
}
}
Последнее редактирование:
