04.05.2018, 16:03
That's a bit more tricky and if you have read what it wronte on the wiki, your code is false.
PHP код:
CMD:dda(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid))
return 1;
new panels, doors, lights, tires,
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors | (0b100 << 16) | (0b100 << 24), lights, tires);
return 1;
}