Progress Bar help with timer
#4

Top of game mode:

pawn Код:
new ShowProgressBar[MAX_PLAYERS];
new ProgressTime[MAX_PLAYERS];

Where rest of public callbacks are:

pawn Код:
forward ShowProgress(playerid);
pawn Код:
public ShowProgress(playerid)
{
    // Display progress bar to show for player here
    if(ProgressTime[playerid] > 0)
    {
        ProgressTime[playerid] --;
    }
    if(ProgressTime[playerid] < 1)
    {
        // Hide the progress bar text draw for player here
        ProgressTime[playerid] = 0;
        KillTimer(ShowProgressBar[playerid]);
    }
    return 1;
}
Put this in your /rob command:

pawn Код:
ProgressTime[playerid] = 30;
ShowProgressBar[playerid] = SetTimerEx("ShowProgress", 60000, true, "i", playerid);
Reply


Messages In This Thread
Progress Bar help with timer - by Xenforox - 30.04.2014, 21:06
Re: Progress Bar help with timer - by rangerxxll - 30.04.2014, 21:09
Re: Progress Bar help with timer - by Xenforox - 30.04.2014, 21:11
Re: Progress Bar help with timer - by AphexCCFC - 30.04.2014, 21:13
Re: Progress Bar help with timer - by rangerxxll - 30.04.2014, 21:14
Re: Progress Bar help with timer - by AphexCCFC - 30.04.2014, 21:15
Re: Progress Bar help with timer - by rangerxxll - 30.04.2014, 21:17
Re: Progress Bar help with timer - by Xenforox - 30.04.2014, 21:28
Re: Progress Bar help with timer - by rangerxxll - 30.04.2014, 21:31
Re: Progress Bar help with timer - by AphexCCFC - 30.04.2014, 21:37

Forum Jump:


Users browsing this thread: 4 Guest(s)