Raised This Month: $ Target: $400
 0% 

Block "+use" command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DragosHh
Junior Member
Join Date: Jul 2008
Old 06-18-2010 , 04:40   Block "+use" command
Reply With Quote #1

Hello guys!
I'm trying to make a plugin wich block the "+use" command or detect the use key pressing, and block the command.

Until now i did this, but doesn't block the "+use" command.

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    register_plugin("Block use cmd", "1.0", "DragosHh")
    register_clcmd("+use", "block_cmd")
}


public block_cmd(id) {
    client_print(id,print_center,"U cannot use the use key!")
    return PLUGIN_HANDLED
}
--------------
Thanks in advance and sorry for my bad English.
DragosHh is offline
 


Thread Tools
Display Modes

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 14:57.


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