Zone capture textdraw timer help
#1

Hello i am trying to make a progressbar for my zone capture this what i did so far but its not working :

PHP код:
forward ProgressbarTimer(playerid);
new 
ProgBarTimer;
//Textdraws
       
zProgBackGround[playerid] = CreatePlayerTextDraw(playerid373.974548274.499786"usebox");
    
PlayerTextDrawLetterSize(playeridzProgBackGround[playerid], 0.0000001.637776);
    
PlayerTextDrawTextSize(playeridzProgBackGround[playerid], 256.9000240.000000);
    
PlayerTextDrawAlignment(playeridzProgBackGround[playerid], 1);
    
PlayerTextDrawColor(playeridzProgBackGround[playerid], 0);
    
PlayerTextDrawUseBox(playeridzProgBackGround[playerid], true);
    
PlayerTextDrawBoxColor(playeridzProgBackGround[playerid], 102);
    
PlayerTextDrawSetShadow(playeridzProgBackGround[playerid], 0);
    
PlayerTextDrawSetOutline(playeridzProgBackGround[playerid], 0);
    
PlayerTextDrawFont(playeridzProgBackGround[playerid], 0);
    
zProgBar[playerid] = CreatePlayerTextDraw(playerid267.099945272.089782" ");
    
PlayerTextDrawLetterSize(playeridzProgBar[playerid], 0.6578491.917566);
    
PlayerTextDrawAlignment(playeridzProgBar[playerid], 1);
    
PlayerTextDrawColor(playeridzProgBar[playerid], -5963521);
    
PlayerTextDrawSetShadow(playeridzProgBar[playerid], 0);
    
PlayerTextDrawSetOutline(playeridzProgBar[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridzProgBar[playerid], 51);
    
PlayerTextDrawFont(playeridzProgBar[playerid], 1);
    
PlayerTextDrawSetProportional(playeridzProgBar[playerid], 1);
public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == ZoneCP[TownHall])
    {
        if(
aDuty[playerid] == 1) return SendClientMessage(playerid, -1,"{0080FF}[ Zone ]: {FFFFFF}You cant capture a zone while onduty");
        if(
TeamCheck[TownHall] == gTeam[playerid]) return SendClientMessage(playerid, -1,"{0080FF}[ Zone ]: {FFFFFF}This zone is already captured by your team");
          if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1,"ERROR: You cannot capture while in vehicle!");
        if(
zUnderAttack[TownHall] == 0)
          {
            
zUnderAttack[TownHall] = 1;
            
IsPlayerCapturing[playerid] = 1;
            
ZoneTimer[playerid][TownHall] = SetTimerEx("SetZone",25000,false,"i"playerid);
            
ProgBarTimer SetTimerEx("ProgressbarTimer",15000,false,"i"playerid);
            
GangZoneFlashForAll(GangZone[TownHall],GetPlayerColor(playerid));
            
SendClientMessageToAll(-1"{0080FF}[ Zone ]: {FFFFFF}Zone TownHall is being taken over");
            
ZoneDefine[playerid] = TownHall;
         }
        else return 
SendClientMessage(playerid, -1,"{0080FF}[ Zone ]: {FFFFFF}This zone is already being taken over!");
    }
    return 
1;
}
public 
ProgressbarTimer(playerid)
{
    if 
ProgBarTimer == 1000)
    (
        
TextDrawSetString(zProgBarl);
    }
    else if 
ProgBarTimer == 2000)
    (
        
TextDrawSetString(zProgBarll);
    )
    else if 
ProgBarTimer == 3000)
    (
        
TextDrawSetString(zProgBarlll);
    )
    else if 
ProgBarTimer == 4000)
    (
        
TextDrawSetString(zProgBarllll);
    )
    else if 
ProgBarTimer == 5000)
    (
        
TextDrawSetString(zProgBarlllll);
    )
    else if 
ProgBarTimer == 6000)
    (
        
TextDrawSetString(zProgBarllllll);
    )
    else if 
ProgBarTimer == 7000)
    (
        
TextDrawSetString(zProgBarlllllll);
    )
    else if 
ProgBarTimer == 8000)
    (
        
TextDrawSetString(zProgBarllllllll);
    )
    else if 
ProgBarTimer == 9000)
    (
        
TextDrawSetString(zProgBarllllllllll);
    )
    else if 
ProgBarTimer == 10000)
    (
        
TextDrawSetString(zProgBarlllllllllll);
    )
    else if 
ProgBarTimer == 11000)
    (
        
TextDrawSetString(zProgBarlllllllllll);
    )
    else if 
ProgBarTimer == 12000)
    (
        
TextDrawSetString(zProgBarllllllllllll);
    )
    else if 
ProgBarTimer == 13000)
    (
        
TextDrawSetString(zProgBarlllllllllllll);
    )
    else if 
ProgBarTimer == 14000)
    (
        
TextDrawSetString(zProgBarllllllllllllll);
    )
    else if 
ProgBarTimer == 15000)
    (
        
TextDrawSetString(zProgBarllllllllllllll);
    )
    return 
1;


Please help me
Reply


Messages In This Thread
Zone capture textdraw timer help - by SalmaN97 - 18.04.2015, 19:29
Re: Zone capture textdraw timer help - by Ahmad45123 - 18.04.2015, 19:37
Re: Zone capture textdraw timer help - by SalmaN97 - 18.04.2015, 19:44
Re: Zone capture textdraw timer help - by Ahmad45123 - 18.04.2015, 19:46
Re: Zone capture textdraw timer help - by SalmaN97 - 18.04.2015, 19:48
Re: Zone capture textdraw timer help - by SalmaN97 - 18.04.2015, 20:02
Re: Zone capture textdraw timer help - by Ahmad45123 - 18.04.2015, 20:05
Re: Zone capture textdraw timer help - by SalmaN97 - 18.04.2015, 20:08
Re: Zone capture textdraw timer help - by SalmaN97 - 18.04.2015, 20:13
Re: Zone capture textdraw timer help - by Azula - 18.04.2015, 20:13

Forum Jump:


Users browsing this thread: 3 Guest(s)