22.02.2016, 20:45
Код:
if(strcmp(cmd, "/rrb", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1)
{
if (PlayerInfo[playerid][pRank] < 3)
{
SendClientMessage(playerid, COLOR_WHITE, "All Road Blocks destroyed..");
for(new o = 0; o < MAX_OBJECTS; o++)
{
if (PlayerInfo[playerid][pRank] < 3)
{
DestroyObject(RoadBlockObject[o]);
RoadBlocks = 0;
}
else
{
DestroyObject(RoadBlockObjectFBI[o]);
RoadBlocksFBI = 0;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You rank is to low to set a Road Block !");
return 1;
}
}
}
return 1;
}
Can anyone tell me why this cmd says all blocks removed but the objects dont leave the map?

