HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fakemeta>
  4.  
  5. #define M_IDEALACTIVITY_OFFSET 89 // Offset finded by KORD_12.7
  6.  
  7. public plugin_init(){
  8. register_plugin("LongJump Sound","0.2","GordonFreeman")
  9. RegisterHam(Ham_Player_Jump, "player", "fw_PlayerJump")
  10. }
  11.  
  12. public plugin_precache(){
  13. precache_sound("misc/pow_big_jump.wav")
  14. }
  15.  
  16. public fw_PlayerJump(id)
  17. {
  18. if(get_pdata_int(id,M_IDEALACTIVITY_OFFSET)==8&&pev(id,pev_frame)==0)
  19. {
  20. emit_sound(id,CHAN_STATIC,"misc/pow_big_jump.wav",VOL_NORM,ATTN_NORM,0,PITCH_NORM)
  21. }
  22. }