Raised This Month: $ Target: $400
 0% 

Want to block two console commands but i can't! (force_centerview & centerview)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-19-2011 , 13:59   Re: Want to block two console commands but i can't! (force_centerview & centerview)
Reply With Quote #8

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("CMDBlock""1.0""Author")
    
register_clcmd("centerview""block")
    
register_clcmd("force_centerview""block")
    
register_concmd("centerview""block")
    
register_concmd("force_centerview""block")
}

public 
block(id)
{
    new 
name[32
    
get_user_name(idname31
    
client_print(0print_chat"%s has been kicked for using an ilegal command"name)
    
server_cmd("kick #%d ^"%s^""get_user_userid(id), "Ilegal command"
    return 
PLUGIN_HANDLED;

Add comand kick
__________________
kramesa 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 08:32.


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