/rrb (remove road blocks)
#3

It should be like this, but, RoadBlocksFBI will never destroy since the command is already for Rank 3.

pawn Код:
if(strcmp(cmd, "/rrb", true) == 0)
{
    if(!IsPlayerConnected(playerid)) return 0;

    if(PlayerInfo[playerid][pRank] < 3)
    {
        if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1)
        {
            for(new o = 0; o < MAX_OBJECTS; o++)
            {
                DestroyObject(RoadBlockObject[o]);
                RoadBlocks = 0;
            }
            SendClientMessage(playerid, COLOR_WHITE, "All Road Blocks destroyed..");
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "Your rank is too low to set a Road Block!");
    }
    return 1;
}
Reply


Messages In This Thread
/rrb (remove road blocks) - by CSLangdale - 22.02.2016, 20:45
Re: /rrb (remove road blocks) - by CSLangdale - 23.02.2016, 07:22
Re: /rrb (remove road blocks) - by ]Rafaellos[ - 23.02.2016, 09:09
Re: /rrb (remove road blocks) - by AmigaBlizzard - 23.02.2016, 09:57
Re: /rrb (remove road blocks) - by ]Rafaellos[ - 23.02.2016, 10:44
Re: /rrb (remove road blocks) - by CSLangdale - 23.02.2016, 14:31
Re: /rrb (remove road blocks) - by Pottus - 23.02.2016, 16:47
Re: /rrb (remove road blocks) - by SamJust - 23.02.2016, 19:03
Re: /rrb (remove road blocks) - by CSLangdale - 23.02.2016, 19:32
Re: /rrb (remove road blocks) - by CSLangdale - 23.02.2016, 19:34

Forum Jump:


Users browsing this thread: 1 Guest(s)