Unoccupied vehicle damage - 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: Unoccupied vehicle damage (
/showthread.php?tid=521000)
Unoccupied vehicle damage -
TheSimpleGuy - 21.06.2014
pawn Код:
if(hittype == BULLET_HIT_TYPE_VEHICLE)
{
new Float:vhp;
GetVehicleHealth(hitid, vhp);
SetVehicleHealth(hitid, vhp-random(100));
}
//my code
Look, I tried that simple command, it doesn't work, any of Unoccupied Vehicle Damage I've downloaded doesn't work.
This is part of my code that I tried, it doesn't work in-game.
Thanks in advance.
Re: Unoccupied vehicle damage -
Konstantinos - 21.06.2014
https://sampforum.blast.hk/showthread.php?tid=488131
Re: Unoccupied vehicle damage -
TheSimpleGuy - 21.06.2014
What if I want all vehicles to be damaged when unoccupied without re-changing AddStaticVehicle?