Untune vehicle command.
#9

Yes, that's the code.

pawn Код:
CMD:untunemycar(playerid, params[]) {
    new
        vehicleid = GetPlayerVehicleID(playerid);
       
    if(vehicleid == 0)
        return SendClientMessage(playerid, 0, "Invalid vehicle ID");
       
    for(new i = 0; i < 14; i++){
        RemoveVehicleComponent(vehicleid, GetVehicleComponentInSlot(vehicleid, i));
    }

    VehicleInfo[vehicleid][mod1] = 0;
    VehicleInfo[vehicleid][mod2] = 0;
    VehicleInfo[vehicleid][mod3] = 0;
    VehicleInfo[vehicleid][mod4] = 0;
    VehicleInfo[vehicleid][mod5] = 0;
    VehicleInfo[vehicleid][mod6] = 0;
    VehicleInfo[vehicleid][mod7] = 0;
    VehicleInfo[vehicleid][mod8] = 0;
    VehicleInfo[vehicleid][mod9] = 0;
    VehicleInfo[vehicleid][mod10] = 0;
    VehicleInfo[vehicleid][mod11] = 0;
    VehicleInfo[vehicleid][mod12] = 0;
    VehicleInfo[vehicleid][mod13] = 0;
    VehicleInfo[vehicleid][mod14] = 0;
    VehicleInfo[vehicleid][mod15] = 0;
    VehicleInfo[vehicleid][mod16] = 0;
    VehicleInfo[vehicleid][mod17] = 0;
    VehicleInfo[vehicleid][paintjob] = -1;
    VehicleInfo[vehicleid][color_2] = -1;
    VehicleInfo[vehicleid][color_1] = -1;
    return 1;
}
Reply


Messages In This Thread
Untune vehicle command. - by OleKristian95 - 02.08.2011, 15:01
Re: Untune vehicle command. - by Calgon - 02.08.2011, 15:25
Re: Untune vehicle command. - by OleKristian95 - 02.08.2011, 15:26
Re: Untune vehicle command. - by OleKristian95 - 02.08.2011, 15:34
Re: Untune vehicle command. - by Calgon - 02.08.2011, 15:36
Re: Untune vehicle command. - by OleKristian95 - 02.08.2011, 15:39
Re: Untune vehicle command. - by Calgon - 02.08.2011, 15:43
Re: Untune vehicle command. - by OleKristian95 - 02.08.2011, 15:45
Re: Untune vehicle command. - by Calgon - 02.08.2011, 15:49
Re: Untune vehicle command. - by OleKristian95 - 02.08.2011, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)