23.02.2016, 14:31
Thanks for the support guys but i changed that and it still dont destroy the blocks
This is what i have at the top of the script aswell
new RoadBlockObject[MAX_OBJECTS];
new RoadBlocks = 0;
new RoadBlockObjectFBI[MAX_OBJECTS];
new RoadBlocksFBI = 0;
Код:
if(strcmp(cmd, "/rrb", true) == 0) { if(PlayerInfo[playerid][pRank] > 3) return SendClientMessage(playerid, COLOR_GREY, "Your rank is too low to destroy a Road Block!"); 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.."); } return 1; }
new RoadBlockObject[MAX_OBJECTS];
new RoadBlocks = 0;
new RoadBlockObjectFBI[MAX_OBJECTS];
new RoadBlocksFBI = 0;