SA-MP Forums Archive
OnPlayerWeaponShot (DUDA) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: OnPlayerWeaponShot (DUDA) (/showthread.php?tid=586164)



OnPlayerWeaponShot (DUDA) - NullBot - 19.08.2015

tengo un problema ...

OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)

no funciona con las armas pesadas como Rockets y granadas! ??


necesito que cuando alguien dispare con una de estas armas
16 .17. 18:
35 .36.37.38. 39:

comparar algunas variables, pero solo me detecta con la minigun, alguien sabe si hay algun bug en esta funciуn ?


Respuesta: OnPlayerWeaponShot (DUDA) - JeffreyG - 19.08.2015

no se bien que queres hacer pero podrias usar

https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

y verificar si fue con esas armas tal cosa


Respuesta: OnPlayerWeaponShot (DUDA) - Dreyfuz - 19.08.2015

Porque OnPlayerWeaponShot solo admite las armas que disparan balas, osea que no soporta las rockets ni las granadas.


Re: OnPlayerWeaponShot (DUDA) - NullBot - 21.08.2015

Solucionado!

usando OnPlayerKeyStateChange comparando si la newkeys es la de disparar y preguntando que arma tiene en ese momento