Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fakemeta>
  4.  
  5. #define PLUGIN "New Plug-In"
  6. #define VERSION "1.0"
  7. #define AUTHOR "Sugisaki"
  8.  
  9. public plugin_init()
  10. {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. RegisterHam(Ham_TraceAttack, "player", "pfnCbasePlayer_TraceAttack")
  13. }
  14. public pfnCbasePlayer_TraceAttack(victim, attacker, float:damage, Float:direction[3], trace, bits)
  15. {
  16. if(!is_user_connected(victim) || !is_user_connected(attacker) ) // esto esta al p2
  17. return HAM_IGNORED
  18. return( get_tr2( trace, TR_iHitgroup ) != HIT_HEAD ) ? HAM_SUPERCEDE : HAM_IGNORED
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement