PDA

View Full Version : Indestructible body


Gruszex
09/05/2014, 10:09 AM
Hey, can you tell me how to do bodywork on vehicles immediately to mending, best not to have to command. thank you.

Dignity
09/05/2014, 10:10 AM
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
}

return 1;
}

Beckett
09/05/2014, 10:10 AM
What do you mean? that vehicle will never take damage?

Vince
09/05/2014, 10:12 AM
Better to use OnVehicleDamageStatusUpdate.

Dignity
09/05/2014, 10:12 AM
What do you mean? that vehicle will never take damage?

Yes;

bodywork on vehicles immediately mending

EDIT:

Better to use OnVehicleDamageStatusUpdate.

Yeah, if there's any alternative that allows you to check vehicle damage than OnPlayerUpdate; use it.

Gruszex
09/05/2014, 10:41 AM
Thank you Mionee