30.11.2013, 13:49
Try this instead
and about the progressbar
pawn Код:
if(IsPlayerInDynamicCP(playerid,WangCarsRobberyCP))
{
if(WangCarsHasBeenRobbed >= 1) return SCM(playerid,COLOR_RED,"ERROR: This location has been robbed recently. Come back later");
ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 0, 0, 5000, 1); //---This doesn't work :@---
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
RobbingWangCars[playerid] =15;
SCM(playerid,COLOR_PINK,"ROBBERY: You are now robbing Wang car's, please wait until you've finished robbing.");
return 1;
}
pawn Код:
//----------------Robbing Wang Cars----------------------------------------
if(RobbingWangCars[i] > 1) //When player is robbing
{
RobbingWang[i] --;
WangRobbedRecently =200;
SetProgressBarValue(barid, 15.0);
ShowProgressBarForPlayer(playerid, barid)
}