/ar bug? -
MuhoX - 24.02.2014
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?
Код:
{
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;
}
Re: /ar bug? -
MuhoX - 24.02.2014
/Bump
Re: /ar bug? -
Bingo - 24.02.2014
Where is the textdraw of the jail time?
Re: /ar bug? -
MuhoX - 24.02.2014
This?
if(GetPVarInt(playerid, "JailTime") > 0)
{
new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(playerid, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
SetPlayerInterior(playerid, 10);
format(string, sizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
print(string);
SendClientMessageToAll(COLOR_RED, string);
SetPVarInt(playerid, "Jailed", 1);
Re: /ar bug? -
Bingo - 24.02.2014
No

, Thats different.
I will help you by teamviewer, Now 3rd time

. No problem.
Re: /ar bug? -
MuhoX - 24.02.2014
Hahahahah thanks man ur just the best helper on this forum!