Raised This Month: $ Target: $400
 0% 

Mute all players on server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WILLEcsgo
Junior Member
Join Date: Jun 2015
Location: Sweden
Old 06-14-2015 , 08:34   Mute all players on server
Reply With Quote #1

Hello alliedmods members!

i need a Counter-Strike 1.6 Mute all plugin

Command too mute all !muteall

its should mute all players on the server in 1 minute

Enjoy!!=)
WILLEcsgo is offline
ex3m77
New Member
Join Date: Mar 2014
Old 06-15-2015 , 13:21   Re: Mute all players on server
Reply With Quote #2

sv_voiceenable 0
ex3m77 is offline
Send a message via Skype™ to ex3m77
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 06-16-2015 , 00:17   Re: Mute all players on server
Reply With Quote #3

Only admin can access this command
say !muteall to off voice
say !unmuteall to on voice
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_clcmd("say !muteall","off_voice");
    
register_clcmd("say_team !muteall","off_voice");
    
    
register_clcmd("say !unmuteall","on_voice");
    
register_clcmd("say_team !unmuteall","on_voice");
}

public 
off_voice(id)
{
    if(
is_user_admin(id))
    {
        
server_cmd("sv_voiceenable 0")
    }
    else
    {
        
client_print(id,print_chat,"you dont have access")
    }
}

public 
on_voice(id)
{
    if(
is_user_admin(id))
    {
        
server_cmd("sv_voiceenable 1")
    }
    else
    {
        
client_print(id,print_chat,"you dont have access")
    }

Attached Files
File Type: sma Get Plugin or Get Source (muteall.sma - 540 views - 599 Bytes)
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 06-16-2015 at 00:18.
indraraj striker is offline
WILLEcsgo
Junior Member
Join Date: Jun 2015
Location: Sweden
Old 06-16-2015 , 15:48   Re: Mute all players on server
Reply With Quote #4

@indraraj striker thanks but i want them too be unmuted in 60 seconds

Last edited by WILLEcsgo; 06-16-2015 at 15:48.
WILLEcsgo is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 06-17-2015 , 03:48   Re: Mute all players on server
Reply With Quote #5

Here you go :

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_clcmd("say !muteall","off_voice");
    
register_clcmd("say_team !muteall","off_voice");
}

public 
off_voice(id)
{
    if(
is_user_admin(id))
    {
        
server_cmd("sv_voiceenable 0");
        
//server_print("voice is disabled");
        
set_task(60.0,"on_voice");
    }
    else
    {
        
client_print(id,print_chat,"You dont have access");
    }
}

public 
on_voice()
{
        
server_cmd("sv_voiceenable 1");    
        
//server_print("voice is enabled");

Attached Files
File Type: sma Get Plugin or Get Source (muteall.sma - 448 views - 507 Bytes)
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
Reply



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 11:54.


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