Raised This Month: $ Target: $400
 0% 

missed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
007asha
Member
Join Date: Mar 2010
Old 09-26-2010 , 14:30   missed
Reply With Quote #1

missed

Last edited by 007asha; 10-18-2016 at 05:04.
007asha is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-26-2010 , 15:44   Re: Just add kick action
Reply With Quote #2

PHP Code:
/* 
*Cvars: 
* voice_inputfromfile 
* voice_forcemicrecord 
*/ 
  
#include <amxmodx> 
  
#define VERSION "0.1" 
  
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_pcvar_nump_enabled ) > 0
    
&&  is_user_connectedid ) ) 
    { 
        new 
intval str_to_numvalue 
        if( 
equalcvar"voice_inputfromfile" ) && intval != 
        { 
            
client_cmdid"voice_inputfromfile 0" 
            
client_cmdid"-voicerecord" 
            
server_cmd"kick #%i ^"HLSS is not allowed^""get_user_useridid ) ) 
        } 
        else if( 
equalcvar"voice_forcemicrecord" ) && intval != 
        { 
            
client_cmdid"voice_forcemicrecord 1" 
            
client_cmdid"-voicerecord" 
            
server_cmd"kick #%i ^"HLSS is not allowed^""get_user_useridid ) ) 
        } 
    } 
    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 

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 09-26-2010, 16:59
007asha
This message has been deleted by 007asha.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-26-2010 , 18:07   Re: Just add kick action
Reply With Quote #3

What? You just posted the same code as you did the first time.
__________________
fysiks is offline
Old 09-27-2010, 12:45
007asha
This message has been deleted by 007asha.
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 09-27-2010 , 18:34   Re: Just add kick action
Reply With Quote #4

Doesn't query_client_cvar() cause an error to your game if you are not running a Steam version?
__________________
RedRobster is offline
Old 09-28-2010, 02:41
007asha
This message has been deleted by 007asha.
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-28-2010 , 07:47   Re: Just add kick action
Reply With Quote #5

Are you running a non-steam server ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Old 09-28-2010, 07:49
007asha
This message has been deleted by 007asha.
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 09:11.


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