Toll Booth System Gate not closing
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 1626.1011,124.8513,36.3228))
        {
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                if(TollBoothPaid[playerid] == 0)
                {
                    new string[128];
                    PlayerInfo[playerid][pCash] -= TOLL_BOOTH_FEE;
                    MoveDynamicObject(TollBoothLV, 1624.5881, 136.6429, 35.8382, 1, -0.0, -0.0, -0.0);
                    format(string, sizeof(string), "The toll booth has cost you: $%i. You have 5 seconds to get through.", TOLL_BOOTH_FEE);
                    SendClientMessage(playerid, COLOR_YELLOW, string);
                    TollBoothLV = 1;
                    TollBoothPaid[playerid] = 1;
                    SetTimer("tollboothlv", 5000, false, "i", playerid);
                    return 1;
                }
            }
        }
Try That.
Reply


Messages In This Thread
Toll Booth System Gate not closing - by Blademaster680 - 09.01.2014, 14:47
Re: Toll Booth System Gate not closing - by J4mmyHD - 09.01.2014, 15:00
Re: Toll Booth System Gate not closing - by Burridge - 09.01.2014, 15:03
Re: Toll Booth System Gate not closing - by Blademaster680 - 09.01.2014, 15:05
Re: Toll Booth System Gate not closing - by iBots - 09.01.2014, 15:40
Re: Toll Booth System Gate not closing - by Blademaster680 - 09.01.2014, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)