HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /* AMX Mod X
  2. * Fun Radio
  3. *
  4. * (c) Copyright 2005 by VEN
  5. *
  6. * This file is provided as is (no warranties)
  7. *
  8. * DESCRIPTION
  9. * Plugin allow increase/decrease all radio audio play speed which sounds fun.
  10. *
  11. * MODULES
  12. * engine
  13. *
  14. * CVARS
  15. * amx_funradio_playspeed (N: speed, default: 130, disable the plugin: 100)
  16. */
  17.  
  18. #include <amxmodx>
  19. #include <engine>
  20.  
  21. public plugin_init() {
  22. register_plugin("Fun Radio", "0.1", "VEN")
  23. register_message(get_user_msgid("SendAudio"), "msg_send_audio")
  24. register_cvar("amx_funradio_playspeed", "130")
  25. }
  26.  
  27. public msg_send_audio() {
  28. if (get_msg_arg_int(3) == 100)
  29. set_msg_arg_int(3, ARG_SHORT, get_cvar_num("amx_funradio_playspeed"))
  30. }
  31.