Andrey_Bened
Ученик
Здравствуйте, помогите когда полицейский посадил игрока через команду arrest то игроку наручники не снимаются в камере, я добавил PlayerCuffed[giveplayerid] = 0; но не работает.
PHP:
JailPrice[suspect] = bailprice;
format(string, sizeof(string), "Вас посадили в тюрьму на %d секунд. Залог: $%d.", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
JailPrice[suspect] = 0;
format(string, sizeof(string), "Вас посадили в тюрьму на %d секунд.", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 1;
PlayerInfo[suspect][pArrested] += 1;
SetPlayerFree(suspect,playerid, "был арестован");
PlayerInfo[suspect][pWanted] = 0; SetPlayerWantedLevel(suspect, PlayerInfo[suspect][pWanted]);
WantLawyer[suspect] = 1;
PlayerCuffed[giveplayerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Некого арестовывать!.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Слишком далеко от места заключения.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не Законник.");
return 1;
}
}
return 1;
}
