/* AMX Mod X
* Fun Radio
*
* (c) Copyright 2005 by VEN
*
* This file is provided as is (no warranties)
*
* DESCRIPTION
* Plugin allow increase/decrease all radio audio play speed which sounds fun.
*
* MODULES
* engine
*
* CVARS
* amx_funradio_playspeed (N: speed, default: 130, disable the plugin: 100)
*/
#include <amxmodx>
#include <engine>
public plugin_init() {
register_plugin("Fun Radio", "0.1", "VEN")
register_message(get_user_msgid("SendAudio"), "msg_send_audio")
register_cvar("amx_funradio_playspeed", "130")
}
public msg_send_audio() {
if (get_msg_arg_int(3) == 100)
set_msg_arg_int(3, ARG_SHORT, get_cvar_num("amx_funradio_playspeed"))
}