OnPlayerWeaponShoot
#1

Hi,

If player shoot to vehicle where is no driver, still onplayerweaponshoot get called?
Reply
#2

Quote:
Description:
This callback is called when a player fires a shot from a weapon. Only bullet weapons are supported. Only passenger drive-by is supported (not driver drive-by, and not sea sparrow / hunter shots).

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
Reply
#3

Then other question just when driver is in car, then when i shoot vehicle HP go less?
Reply
#4

Код:
if( hittype == BULLET_HIT_TYPE_VEHICLE )
{
       if(!IsVehicleOccupied(hitid)
       {
              SetVehicleHealth(..);
       }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)