30.04.2014, 21:13
Top of game mode:
Where rest of public callbacks are:
Put this in your /rob command:
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;
}
pawn Код:
ProgressTime[playerid] = 30;
ShowProgressBar[playerid] = SetTimerEx("ShowProgress", 60000, true, "i", playerid);