SA-MP Forums Archive
How i can put godmode to cars - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How i can put godmode to cars (/showthread.php?tid=253571)



How i can put godmode to cars - Renks554 - 07.05.2011

title says all..


Re: How i can put godmode to cars - [NoV]LaZ - 07.05.2011

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    SetVehicleHealth(vehicleid, 1000);
}
Everytime you damage your vehicle its health will be restored.
OnVehicleDamageStatusUpdate is called when the vehicle's components are damaged, and ultimately its health.


Re: How i can put godmode to cars - Renks554 - 07.05.2011

error 025: function heading differs from prototype


Re: How i can put godmode to cars - [NoV]LaZ - 07.05.2011

Ops, I've edited my previous message; instead of playerid it's vehicleid and vice-versa.


Re: How i can put godmode to cars - Renks554 - 07.05.2011

ok , but when i flip wrong side with the car , it's fire up anyway :S

bad english ..


Re: How i can put godmode to cars - [NoV]LaZ - 07.05.2011

You'd need to find a way to flip the vehicle back on its wheels. That's a different problem.