Raised This Month: $ Target: $400
 0% 

I want to find or request a plugin to stop the music for everyone on the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
305like
Junior Member
Join Date: Aug 2023
Location: korean
Old 09-12-2023 , 01:06   I want to find or request a plugin to stop the music for everyone on the server
Reply With Quote #1

Find a plugin that allows admins to force people to turn off music
I just want stopsound to work in the people console
Does anyone know of this plugin?

Hopefully a plugin that works for TF2 games
305like is offline
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 09-12-2023 , 22:36   Re: I want to find or request a plugin to stop the music for everyone on the server
Reply With Quote #2

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(PLUGINVERSIONAUTHOR)
    
    
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
__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz

Last edited by Mo3taz; 09-12-2023 at 22:45.
Mo3taz is offline
Send a message via Yahoo to Mo3taz
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-12-2023 , 23:57   Re: I want to find or request a plugin to stop the music for everyone on the server
Reply With Quote #3

If you don't want them to hear music, don't play music. Otherwise, leave them alone.
__________________
fysiks is offline
mlibre
Senior Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 09-13-2023 , 08:43   Re: I want to find or request a plugin to stop the music for everyone on the server
Reply With Quote #4

automute?

or

sv_voiceenable 0
__________________

Last edited by mlibre; 09-13-2023 at 09:45.
mlibre is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:50.


Powered by vBulletin®
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Theme made by Freecode