11.03.2015, 18:54
(
Последний раз редактировалось s3ek; 11.03.2015 в 20:03.
Причина: crash (tuning cars)
)
i want to make cmd for admin/rcon to untune all cars server like this:
i have problem crash in my server , and this problem in tuning cars
help my guys !!
i have problem crash in my server , and this problem in tuning cars
help my guys !!
PHP код:
CMD:untunemycar(playerid, params[]) {
new
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid == 0)
return SendClientMessage(playerid, 0, "ERROR: You must own this vehicle to untune it");
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;
}