SA-MP Forums Archive
Vehicle damaged - 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: Vehicle damaged (/showthread.php?tid=614505)



Vehicle damaged - jimdo - 09.08.2016

How do I make the vehicle damage system?

For the example: Vehicle Damaged. Please use /service mechanic.

I've search the whole forum and never find it.


Re: Vehicle damaged - Whatname - 09.08.2016

PHP код:
new Float:vhp;
GetVehicleHealth(GetPlayerVehicleID(playerid), vhp);
new 
enginelightsalarmdoorsbonnetbootobjective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), enginelightsalarmdoorsbonnetbootobjective);
if(
vhp 351
{
    
SendClientMessage(playerid0xFF0000FF"Vehicle damaged. Please use /servic mechanic.");
    
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0lightsalarmdoorsbonnetbootobjective);




Re: Vehicle damaged - jimdo - 09.08.2016

where should i put?


Re: Vehicle damaged - FreAkeD - 09.08.2016

EDIT: Misread post. Remove.