20.01.2014, 16:49
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
}
}
![Wink](images/smilies/wink.png)
A native type wouldnt make it faster than checking for PLAYER || NPC would slow it down.