10.06.2010, 12:07
So, this is a fragment of my script:
And I need help... You can add hydraulics ONLY in vehicle IDs 511 and 512 (example)... How to make this:
Other ID:
True ID:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == TUNINGMENU) { if(response) { if(listitem == 0) // Hydraulics { AddVehicleComponent(vehicle, 1087); SendClientMessage(playerid, COLOR_GREEN, "You have succesfully added Hydraulics to your vehicle!"); }
Other ID:
Код:
SendClientMessage(playerid, COLOR_RED, "ERROR: You can't add hydraulics to this vehicle!");
Код:
SendClientMessage(playerid, COLOR_GREY, "You have succesfully added hydraulics to your vehicle!"); AddVehicleComponent(vehicle, 1087);