OnPlayerWeaponShot and dynamic objects - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerWeaponShot and dynamic objects (
/showthread.php?tid=553034)
OnPlayerWeaponShot and dynamic objects -
kamiliuxliuxliux - 27.12.2014
Looks like OnPlayerWeaponShot callback doesn't return right hitid or hittype while shooting to dynamic object...? If yes, so how to fix this problem?
Re: OnPlayerWeaponShot and dynamic objects -
dusk - 27.12.2014
It's not a problem actually, the streamer plugin has its own callback:
pawn Код:
forward OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float:x, Float:y, Float:z);
Re: OnPlayerWeaponShot and dynamic objects -
Abagail - 27.12.2014
As dusk stated, the streamer plug-in has a callback matching the callback, although I can't confirm returning 0 has the same effect as OnPlayerWeaponShot(causing the bullet data to not send).
Re: OnPlayerWeaponShot and dynamic objects -
kamiliuxliuxliux - 28.12.2014
Thank you!
Re: OnPlayerWeaponShot and dynamic objects -
Abagail - 28.12.2014
No problem, glad to help. If you need anything else, feel free to ask!