HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < cstrike >
  5. #include < fakemeta >
  6.  
  7. new const g_szSound[ ] = "player/pl_shell1.wav";
  8.  
  9. public plugin_init() {
  10. register_plugin( "Hide N Seek Alarm", "1.0", "SXJ Team, tvix1337" );
  11.  
  12. register_forward( FM_PlayerPreThink, "fwdPlayerPreThink", 0 );
  13. }
  14. public plugin_precache( ) {
  15.  
  16. precache_sound( g_szSound );
  17. }
  18. public fwdPlayerPreThink( id ) {
  19.  
  20. if(( is_user_alive( id ) && cs_get_user_team( id ) == CS_TEAM_T ) && pev( id, pev_button ) & IN_USE ) {
  21.  
  22. emit_sound( id, CHAN_STATIC, g_szSound, 0.7, ATTN_NORM, 0, PITCH_NORM );
  23.  
  24. return PLUGIN_CONTINUE
  25. } else {
  26. return PLUGIN_HANDLED
  27. }
  28. return PLUGIN_HANDLED
  29. }
  30.  
  31.  
  32. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  33. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  34. */
  35.