Quote:
Originally Posted by doreto
Yes, OnPlayerWeaponShot
pawn Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(hittype == BULLET_HIT_TYPE_VEHICLE) { // lower vehicle health } return 1; }
|
What is the default value? i mean the vehicle damaged will be updated according to the weapon which shoots.