Raised This Month: $ Target: $400
 0% 

Using AddCommandOverride


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LordFear
Junior Member
Join Date: Dec 2009
Location: Sweden
Old 08-13-2010 , 09:46   Using AddCommandOverride
Reply With Quote #1

On my ZombieMod:Reloaded servers I got tired of all my admins being able to use the respawn commands and such. Seeing as setting it in the admin group mode is not an option I tried the way of using AddCommandOverride to give the commands a new flag.

The plugin is rather simple and only contains this:
PHP Code:
public OnPluginStart()
{
  
AddCommandOverride("zr_human"Override_CommandADMFLAG_CUSTOM3);
  
AddCommandOverride("zr_infect"Override_CommandADMFLAG_CUSTOM3);
  
AddCommandOverride("zr_zspawn_force"Override_CommandADMFLAG_CUSTOM3);
  
AddCommandOverride("zr_ztele_force"Override_CommandADMFLAG_CUSTOM3);
  
AddCommandOverride("zadmin"Override_CommandADMFLAG_CUSTOM3);

However, I can still use all those commands after I stripped my second account from CUSTOM3 (it doesn't have root).

I also tried adding them to the admin_override file. Still no effect.

Is there anything more then that needed?

Last edited by LordFear; 08-13-2010 at 10:22.
LordFear is offline
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 04:52.


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