19.04.2014, 15:09
Is that possible to make a vehicle take damage although there isn't any person in the vehicle like single player?
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_VEHICLE)
{
// lower vehicle health
}
return 1;
}
Yes,OnPlayerWeaponShot
pawn Code:
|