20.05.2015, 19:15
The title is self-explanatory, OnPlayerWeaponShot is not being called properly with sniper (most part of shoots), here goes the video:
[ame]http://www.youtube.com/watch?v=lViL44EV6Bs[/ame]
Debug code:
Additional info:
- I don't use filterscripts or other files which contains OnPlayerWeaponShot callback.
- Still work fine for deagle and maybe other weapons, only sniper seems bugged.
- Most part of sniper bullets aren't detected.
- Sorry for the random music in video, I listen to Jack Johnson everydays.
[ame]http://www.youtube.com/watch?v=lViL44EV6Bs[/ame]
Debug code:
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { new string[128]; format(string, 128, "Ammo from %s sucefully updated!", GetWeaponName(weaponid)); SendClientMessage(playerid, -1, string); return 1; }
- I don't use filterscripts or other files which contains OnPlayerWeaponShot callback.
- Still work fine for deagle and maybe other weapons, only sniper seems bugged.
- Most part of sniper bullets aren't detected.
- Sorry for the random music in video, I listen to Jack Johnson everydays.