Raised This Month: $ Target: $400
 0% 

Blocking meta command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-21-2005 , 15:49   Blocking meta command
Reply With Quote #1

Is there any way of blocking the "meta" command (client onley)
__________________
Sig(h)!
Obbin is offline
DarlD
Senior Member
Join Date: Aug 2004
Old 12-21-2005 , 16:13  
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Meta Block", "0.1", "Meta")     register_clcmd("meta","meta") } public meta(id,level) {     if ( !access(id, level)     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     client_print(id,print_console,"[Meta] We are sorry but you cannot use this command!")     return PLUGIN_HANDLED }
__________________
DarlD is offline
Send a message via MSN to DarlD
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-22-2005 , 05:10  
Reply With Quote #3

EDIT: That didnt block the command, just printed a lot of text in console.
The command still works!



thx !
__________________
Sig(h)!
Obbin is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-22-2005 , 08:51  
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Meta Block" , "1.0" , "$uicid3")     register_clcmd("meta" , "BlockMeta" , ADMIN_RCON) } public BlockMeta( id , level , cid ) {     if(!cmd_access( id , level , cid , 0))         return PLUGIN_HANDLED     return PLUGIN_CONTINUE }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-22-2005 , 08:53  
Reply With Quote #5

it might not block it because Metamod will probably get the command before it is sent to AMXX (your plugin)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-23-2005 , 11:43  
Reply With Quote #6

so it is not possible?
__________________
Sig(h)!
Obbin is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 12-23-2005 , 12:27  
Reply With Quote #7

Of course it isn't. Such an idea is laughable.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
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 15:52.


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