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 Metamodplugins.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.