Get Vehicle Nitro
#4

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;
}
Reply


Messages In This Thread
Get Vehicle Nitro - by cellps - 16.06.2018, 01:49
Re: Get Vehicle Nitro - by AzaMx - 16.06.2018, 02:35
Re: Get Vehicle Nitro - by AgusZ - 16.06.2018, 02:45
Re: Get Vehicle Nitro - by Ultraz - 16.06.2018, 06:09

Forum Jump:


Users browsing this thread: 1 Guest(s)