OnPlayerWeaponShot not working
#1

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{

    printf("Weapon fired %d", weaponid);
        return 1;
}
It doesn't print if I shoot somewhere that is mapped, therefore I can't track player ammo accurately.
Reply
#2

You must be shooting at a dynamic object then. Streamer has a separate callback for that:
Код:
OnPlayerShootDynamicObject(playerid, weaponid, STREAMER_TAG_OBJECT objectid, Float:x, Float:y, Float:z);
Reply
#3

Literally just found this when you posted, thanks for the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)