BULLET_HIT_TYPE_NPC?
#2

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
    if (hittype == BULLET_HIT_TYPE_PLAYER && IsPlayerNPC(hitid)) {
        // BULLET_HIT_TYPE_NPC
    }
}
I really doubt that we need an extra hittype for that
A native type wouldnt make it faster than checking for PLAYER || NPC would slow it down.
Reply


Messages In This Thread
BULLET_HIT_TYPE_NPC? - by Elorreli - 20.01.2014, 16:46
Re: BULLET_HIT_TYPE_NPC? - by Mauzen - 20.01.2014, 16:49
Re : Re: BULLET_HIT_TYPE_NPC? - by Elorreli - 20.01.2014, 16:50
Re: BULLET_HIT_TYPE_NPC? - by iJumbo - 20.01.2014, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)