16.06.2018, 06:09
Use GetVehicleComponentType variables & check sa-mp wikipedia's source.
Код:
public OnVehicleMod(playerid, vehicleid, componentid) { new componentType = GetVehicleComponentType(componentid); if(componentType != -1) { new clientMessage[41]; format(clientMessage, sizeof(clientMessage), "You have modified your vehicle on slot %i", componentType); SendClientMessage(playerid, 0xFFFFFFFF, clientMessage); } else { SendClientMessage(playerid, 0xFF0000FF, "The component is invalid."); } return 1; }