30.11.2013, 14:46
I think robbingtime should be a global variable ? Try
pawn Код:
new robbingtime[MAX_PLAYERS];
forward RobberyBar(playerid);
public RobberyBar(playerid)
{
robbingtime[playerid] ++;
SetProgressBarValue(MyRobberyBar, robbingtime[playerid]);
if(robbingtime == 15)
{
KillTimer(RobbingTime);
HideProgressBarForPlayer(playerid,MyRobberyBar);
HideProgressBarForPlayer(playerid,MyRobberyBar);
robbingtime[playerid] = 0;
}
return 1;
}