Raised This Month: $ Target: $400
 0% 

I need help in how to block a command from a client


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lazarus Long
Senior Member
Join Date: Oct 2004
Old 05-10-2005 , 07:44   I need help in how to block a command from a client
Reply With Quote #1

Hello, everybody:

I'm having trouble in securing a Metamod plugin and I'm trying to do it using a AMX Mod X plugin I'm writing myself.

The situation involves PODBot mm running on a Linux based dedicated server, and the problem is that any user can add, kill or remove bots at will. What I'm trying to do is restrict this only to admins and also for commands run on the server console itself.

The commands are "pb" and "podbotmenu" (this one is a client only command I think).

I was able to trap both commands either using client_command() and client_PreThink() (both work). The problem is that I'm unable to avoid the commands to pass to the PODBot mm plugin. For instance if I use return PLUGIN_HANDLED_MAIN inside client_command() the command still passes to the other plugin.

I set up the Metamod plugins.ini to load AMX Mod X before the PODBot mm as recomended in another post, but I'm unable to achieve what I need.

Can anyone please help me out, by explaining how to block a command intended for another plugin if a certain condition is met? If requested I can post the code I already have, but it is a direct implementation of the examples for the two above mentioned functions.

Thank you very much, best regards,
__________________
Lazarus Long 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 16:45.


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