AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking meta command (https://forums.alliedmods.net/showthread.php?t=22224)

Obbin 12-21-2005 15:49

Blocking meta command
 
Is there any way of blocking the "meta" command (client onley)

DarlD 12-21-2005 16:13

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 }

Obbin 12-22-2005 05:10

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



thx !

Xanimos 12-22-2005 08:51

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 12-22-2005 08:53

it might not block it because Metamod will probably get the command before it is sent to AMXX (your plugin)

Obbin 12-23-2005 11:43

so it is not possible?

Twilight Suzuka 12-23-2005 12:27

Of course it isn't. Such an idea is laughable.


All times are GMT -4. The time now is 15:53.

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