for cs 1.6:
PHP Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define ADMIN_ACC ADMIN_KICK
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /offmusic", "stop_music")//chat
register_concmd("amx_offmusic", "stop_music")//consol
}
public stop_music(id)
{
if(get_user_flags(id) & ADMIN_ACC)
{
client_cmd(0, "stopsound")//for map musics
client_cmd(0, "mp3 stop")//for the musics made with plugins
client_cmd(0, "mp3 stop sound/<your music location>.mp3")//stop specific song (must be precached and already in playing)
}
return PLUGIN_CONTINUE
}
for tf2 wrong section
__________________