if(strcmp(cmd, "/surr", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pCrimes] < 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы не в розыске!");
return 1;
}
if(PlayerCuffed[playerid] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы не можете поднять руки!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_YELLOW2, "** Вы подготовились к арресту...");
format(string, sizeof(string), "* Диспетчер: %s сдается и ждет арреста. Кординаты на GPS , Конец связи", sendername);
SendRadioMessage(1,COLOR_LIGHTRED, string);
SendRadioMessage(2,COLOR_LIGHTRED, string);
SendRadioMessage(3,COLOR_LIGHTRED, string);
SendRadioMessage(24,COLOR_LIGHTRED, string);
SendRadioMessage(29,COLOR_LIGHTRED, string);
SetPlayerColor(playerid, COLOR_WHITE);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
}
return 1;
}
Автор:неизвестен
Вход
Регистрация
Помощь














