SA-MP Forums Archive
Arrest Timer Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Arrest Timer Help (/showthread.php?tid=250252)



Arrest Timer Help - Tommy_Mandaz - 22.04.2011

Hello,

I want it so that when my timer starts:

pawn Код:
gPlayerInfo[Player][pArrestTime] = Times*60000;
unjailtimer[Player] = SetTimerEx("UnjailSuspect",gPlayerInfo[Player][pArrestTime],false,"i",Player);
It begins subtracting -1 from the gPlayerInfo[Player][pArrestTime] each second so when the player disconnects:

pawn Код:
INI_WriteInt(Accfile, "ArrestTime", gPlayerInfo[playerid][pArrestTime]);
I can do that and it would save how much time they had left, thanks. Here is my public for the timer:

pawn Код:
forward UnjailSuspect(playerid);
public UnjailSuspect(playerid)
{
    SetPlayerPos(playerid, 240.4612, 112.8166, 1003.2188);
    SetPlayerFacingAngle(playerid, 91.5667);
    gPlayerInfo[playerid][pArrestTime] = 0;
    new string[128], sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    Fmsg("%s signs his release papers and puts the pen down", sendername);
    SendClientMessage(playerid, COLOR_GREEN, "You've been released from prison");
    SLM(playerid, string, 35, COLOR_PURPLE, COLOR_PURPLE);
    return 1;
}
Thanks.


Re: Arrest Timer Help - Tommy_Mandaz - 22.04.2011

Bump please? Just something that would lower -1 each second... Thanks!


Re: Arrest Timer Help - Tommy_Mandaz - 22.04.2011

Anyone please I really need to finish this part of my script? How can I make it please?


Re: Arrest Timer Help - Tommy_Mandaz - 22.04.2011

bump comon anyone? please?