Indestructible body - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Indestructible body (
/showthread.php?tid=512147)
Indestructible body -
Gruszex - 09.05.2014
Hey, can you tell me how to do bodywork on vehicles immediately to mending, best
not to have to command. thank you.
Re: Indestructible body -
Dignity - 09.05.2014
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
Re: Indestructible body -
Beckett - 09.05.2014
What do you mean? that vehicle will never take damage?
Re: Indestructible body -
Vince - 09.05.2014
Better to use OnVehicleDamageStatusUpdate.
Re: Indestructible body -
Dignity - 09.05.2014
Quote:
Originally Posted by DaniceMcHarley
What do you mean? that vehicle will never take damage?
|
Yes;
Quote:
Originally Posted by Gruszex
bodywork on vehicles immediately mending
|
EDIT:
Quote:
Originally Posted by Vince
Better to use OnVehicleDamageStatusUpdate.
|
Yeah, if there's any alternative that allows you to check vehicle damage than OnPlayerUpdate; use it.
Re: Indestructible body -
Gruszex - 09.05.2014
Thank you
Mionee