Arrest Timer Help
#1

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.
Reply
#2

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

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

bump comon anyone? please?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)