10.01.2010, 16:55
They are only able to delete the last 5 with /rrb1-5 i'll show the code
If you need more code, please say then.. Because i need this fixed
Код:
if(strcmp(cmd, "/roadunblock2", true) == 0 || strcmp(cmd, "/rrb2", true) == 0) { if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] != 1) { SendClientMessage(playerid, COLOR_GREY, "[Error] Invalid faction"); return 1; } if (RoadBlock2[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "[Error] You have not deployed a roadblock"); return 1; } DestroyObject(roadblock2); RoadBlock2[playerid] -= 1; SendClientMessage(playerid, COLOR_LSPD, "[Info] Roadblock #2 removed"); return 1; }
