SA-MP Forums Archive
Player killed with vehicle - 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: Player killed with vehicle (/showthread.php?tid=511304)



Player killed with vehicle - audriuxxx - 04.05.2014

Hi,

When player kill somebody with vehicle how much damage then he taken?


Re: Player killed with vehicle - Nathan_Taylor - 04.05.2014

It all depends on if they are going really fast, or slow. There is no specific number. Try making a command that just tells you your health, stand still and have someone hit you at different speeds in different cars and see what your health gets to.


Re: Player killed with vehicle - Abagail - 04.05.2014

It is not a certain damage. It really depends. As nathan suggested, make a command that gets your health, and just have someone hit you going at different speeds.

pawn Code:
CMD:myhp(playerid, params[])
{
new Float: HP;
GetPlayerHealth(playerid, HP);
new string[126];
format(string, sizeof(string), "Health: %f", HP);
SendClientMessage(playerid,-1,string);



Re: Player killed with vehicle - iZN - 04.05.2014

Get the player's health when it hits with a vehicle, and after that subtract it with the total health of the player (before the hit).