Timer fu**ed up? +REP!
#2

You can use a new variable like

pawn Код:
new IsJailedInAr1[MAX_PLAYERS]; //in the top
and put the

pawn Код:
IsJailedInAr1[playerid] = 1; // in the ar1 command
and in the Timer Callback use:

pawn Код:
forward Unjail(playerid);
public Unjail(playerid)
{
     new id;
    //put it here
    if(IsJailedInAr1[playerid] == 1)
    {
       if(JailTime[id] <= 60000)
       {
          //teleport the out of jail
          JailTime[id] = 60000;
          KillTimer(JailTimer[id]);
          SetPlayerPos(id, -2149,-2395.6000976563,30.200000762939);
          SetPlayerInterior(id, 0);
          SetPlayerVirtualWorld(id, 0);
          SetPlayerColor(id,COLOR_WHITE);
          IsJailedInAr1[playerid] = 0;
          SendClientMessage(id, COLOR_GOLD,"[INFO]You have been UnJailed, Now try to be a good civilian!");
        }
    }
    return 1;
}
Try that I am sure this will help you as this only works for the player who is in Ar1!

-FalconX
Reply


Messages In This Thread
Timer fu**ed up? +REP! - by Gooday - 02.03.2012, 15:08
Re: Timer fu**ed up? +REP! - by FalconX - 02.03.2012, 15:23
Re: Timer fu**ed up? +REP! - by Mike_Peterson - 02.03.2012, 15:25
Re: Timer fu**ed up? +REP! - by FalconX - 02.03.2012, 15:27
Re: Timer fu**ed up? +REP! - by BigD - 02.03.2012, 15:29
Re: Timer fu**ed up? +REP! - by iTorran - 02.03.2012, 15:30
Re: Timer fu**ed up? +REP! - by Gooday - 02.03.2012, 15:38
Re: Timer fu**ed up? +REP! - by FalconX - 02.03.2012, 15:39

Forum Jump:


Users browsing this thread: 3 Guest(s)