19.01.2015, 08:40
Shotguns does different amounts of damage depending how many bullets hit the vehicle, and it would take a very long time to calculate this for every weapon.
It's very easy having a custom damage script for players.
This will just give them the health back they were damaged of, and then you can set new values of damage for each weapon.
But how do you do this with vehicles? There must be a way, or maybe an include someone has made for this?
It's very easy having a custom damage script for players.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + amount);
return 1;
}
But how do you do this with vehicles? There must be a way, or maybe an include someone has made for this?

