Raised This Month: $51 Target: $400
 12% 

[CSS] players must have the flag "a" to speak(thx Darkness)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
janpepu
AlliedModders Donor
Join Date: Sep 2007
Location: france
Old 02-11-2015 , 16:09   [CSS] players must have the flag "a" to speak(thx Darkness)
Reply With Quote #1

HI all!

I search a plugin to restict the voice on the server, only users who have the "a" flag can speak.
Server have sv_voiceenable 0

Any idea ?

Last edited by janpepu; 02-12-2015 at 16:27.
janpepu is offline
Darkness_
Veteran Member
Join Date: Nov 2014
Old 02-11-2015 , 17:24   Re: [REQ][CSS] players must have the flag "a" to speak
Reply With Quote #2

Turn voiceenable back on
sv_voiceenable 1

Then try this

PHP Code:
#include <sourcemod>
#include <basecomm>

public OnPluginStart() {
    for (new 
1<= MaxClientsi++) {
        if (!
IsClientInGame(i))
            continue;
        
OnClientPostAdminCheck(i);
    }
}
public 
OnClientPostAdminCheck(client) {
    new 
AdminId:adminID GetUserAdmin(client);
    if (!(
GetAdminFlag(adminIDAdmin_Reservation))) {
        
BaseComm_SetClientMute(clienttrue);
    }

Darkness_ is offline
janpepu
AlliedModders Donor
Join Date: Sep 2007
Location: france
Old 02-12-2015 , 16:22   Re: [REQ][CSS] players must have the flag "a" to speak
Reply With Quote #3

thanks Darkness, it's good !

Last edited by janpepu; 02-12-2015 at 16:22.
janpepu 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 19:41.


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