Raised This Month: $ Target: $400
 0% 

Mute code help please


Post New Thread Reply   
 
Thread Tools Display Modes
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 12-10-2009 , 21:39   Re: Mute code help please
Reply With Quote #11

add

#include <sdktools>

to the top of your plugin.
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.
meng is offline
Send a message via Yahoo to meng
Leetbix
Member
Join Date: Dec 2009
Old 12-12-2009 , 08:19   Re: Mute code help please
Reply With Quote #12

Quote:
Originally Posted by meng View Post
try this.
PHP Code:
public EventPlayerTeam(Handle:event,const String:name[],bool:dontBroadcast)
{
    if (
mute == true)
    {
        new 
client GetClientOfUserId(GetEventInt(event,"userid"));
        new 
team GetEventInt(event"team");
        if (
team == 2)
        {
            
SetClientListeningFlags(clientVOICE_MUTED);
        }
    }

Still doesnt work when someone joins team......
also when they get respawned.
Leetbix is offline
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 12-12-2009 , 10:57   Re: Mute code help please
Reply With Quote #13

You need an include I think:

PHP Code:
#include <sdktools_voice> 
SilentLikeSilence is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 12-12-2009 , 11:10   Re: Mute code help please
Reply With Quote #14

Quote:
Originally Posted by SilentLikeSilence View Post
You need an include I think:

PHP Code:
#include <sdktools_voice> 
Nah, I mess with voice just fine with just #include <sdktools>
If he needed an include it would error on compile.

Last edited by Dragonshadow; 12-12-2009 at 11:20.
Dragonshadow 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:40.


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