Raised This Month: $ Target: $400
 0% 

hlss block


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-04-2010 , 07:35   Re: hlss block
Reply With Quote #4

try this:
PHP Code:
#include <amxmodx>
#include <colorchat>
 
#define VERSION "0.1"
#define ACCESS ADMIN_KICK 
 
new p_enabled
 
public hlss_query( )
{
    if( 
get_pcvar_nump_enabled ) )
    {
        new 
clnt[32], num
        get_players
clntnum"c" )
        for( new 
0numi++ )
        {
            
query_client_cvarclnt[i], "voice_inputfromfile""hlss_block" )
            
query_client_cvarclnt[i], "voice_forcemicrecord""hlss_block" )
        }
    }
    return 
PLUGIN_HANDLED
}
 
public 
hlss_blockidcvar[], value[] )
{
    if(!
get_user_flags(id) && ACCESS)
    {
        
ColorChat(idRED"This is a jailbreak server, no HLSS allowed.")
        return 
PLUGIN_HANDLED
    
}
    
    if( 
get_pcvar_nump_enabled ) > )
    {
        new 
intval str_to_numvalue )
        if( 
equalcvar"voice_inputfromfile" ) && intval != )
        {
            
client_cmdid"voice_inputfromfile 0" )
            
client_cmdid"-voicerecord" )
        }
        if( 
equalcvar"voice_forcemicrecord" ) && intval != )
        {
            
client_cmdid"voice_forcemicrecord 1" )
            
client_cmdid"-voicerecord" )
        }
    }
    return 
PLUGIN_HANDLED
}
 
public 
plugin_init( )
{
    
register_plugin"HLSS Blocker"VERSION"Ian Cammarata" )
    
register_cvar"HLSS Blocker"VERSIONFCVAR_SERVER )
 
    
p_enabled register_cvar"amx_block_hlss""1" )
 
    
set_task1.0"hlss_query",_,_,_,"b" )
 
    return 
PLUGIN_CONTINUE

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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 03:48.


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