24.02.2014, 17:12
When I /cuff and then /ar the suspect goes in to the jail but no time is shown.
When I do /kill or somthing to evade the jail it sends me back and then It shows time so after that it works but I just wan't it to work when the suspect gets arrested.
What do I have to do?
When I do /kill or somthing to evade the jail it sends me back and then It shows time so after that it works but I just wan't it to work when the suspect gets arrested.
What do I have to do?
Код:
{
format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s",PlayerInfo(playerid), PlayerInfo(ID));
SendClientMessageToAll(COLOR_BLUE, string);
CNR_PrintString(string);
format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
SendCopMessage(string);
GivePlayerMoney(playerid, 3000);
IncreaseScore(playerid, 2);
SetPVarInt(ID, "JailTime", 45);
SetPlayerInterior(ID, 10);
new rnd = random(sizeof(PrisonSpawn));
SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
TogglePlayerControllable(ID, 1);
SetPlayerWantedLevel(ID, 0);
return 1;
}


, Thats different.
. No problem.