Raised This Month: $ Target: $400
 0% 

Block console commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 08-02-2010 , 10:36   Re: Block console commands
Reply With Quote #2

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

public plugin_init()
{
    
register_plugin("Register Command""2.0""Alucard")
}

public 
client_command(id)
{
    static 
argv[16]
    
read_argv(0argvcharsmax(argv) )
    
    if(
equali(argv"jointeam") && !cs_get_user_team) return PLUGIN_HANDLED

Thanks to Alucard^

http://forums.alliedmods.net/showpos...&postcount=134

Possible bug fix

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

public plugin_init()
{
    
register_plugin("Register Command""2.0""Alucard")
}

public 
client_command(id)
{
    static 
argv[16]
    
read_argv(0argvcharsmax(argv) )
    
    if(
equali(argv"jointeam") && cs_get_user_team(id) != CS_TEAM_UNASSIGNED) return PLUGIN_HANDLED

    
return PLUGIN_CONTINUE


Last edited by Raddish; 08-02-2010 at 10:38.
Raddish is offline
 



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 00:09.


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