HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. new enabled, allow
  5.  
  6. public plugin_init()
  7. {
  8. register_plugin("Mini Sound Fixer" , "1.0" , "Throstur")
  9. register_event("ResetHUD" , "Event_Reset" , "b")
  10. register_clcmd("say /fixsound" , "cmdStopsound")
  11.  
  12. allow = register_cvar("amx_msoundfix_pallow","1")
  13. enabled = register_cvar("amx_msoundfix","1")
  14. }
  15.  
  16. public Event_Reset(id)
  17. {
  18. if(get_pcvar_num(enabled) == 1)
  19. {
  20. client_cmd(id,"room_type 00")
  21. }
  22. }
  23.  
  24. public cmdStopsound(id)
  25. {
  26. if((get_pcvar_num(allow) == 1) || (access(id,ADMIN_IMMUNITY)) )
  27. {
  28. client_cmd(id,"stopsound;room_type 00")
  29. client_cmd(id,"stopsound")
  30. client_print(id,print_chat,"[AMXX] Mostmar nincs visszhang.")
  31. }
  32. else
  33. {
  34.  
  35. client_print(id,print_console,"[AMXX] Ez a parancs le van tiltva.")
  36. return PLUGIN_HANDLED
  37. }
  38. return PLUGIN_CONTINUE
  39. }
  40.