17.01.2014, 20:29
pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ ) {
if(hittype = BULLET_HIT_TYPE_VEHICLE) {
new Float:health;
GetVehicleHealth(hitid, health);
SetVehicleHealth(hitid, (health - 70));
}
return true;
}