20.01.2014, 16:46
Would be awesome if you could detect shots fired at NPCs or is it included in
#define BULLET_HIT_TYPE_PLAYER
?
#define BULLET_HIT_TYPE_PLAYER
?
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
if (hittype == BULLET_HIT_TYPE_PLAYER && IsPlayerNPC(hitid)) {
// BULLET_HIT_TYPE_NPC
}
}