Raised This Month: $32 Target: $400
 8% 

Help / Support How to restrict rcon commands?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Apokalipsisa
Member
Join Date: May 2012
Old 07-28-2014 , 06:06   How to restrict rcon commands?
Reply With Quote #1

I am using zombie plague 4.3,and some of the admins with rcon access use rcon commands like "amx_rcon zp_respawn , amx_rcon zp_human....." how can i restrict all of this commands?
Apokalipsisa is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-28-2014 , 06:11   Re: How to restrict rcon commands?
Reply With Quote #2

Don't give it to all the admins... Go to your users.ini and remove the "l".
Code:
l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.
Just4Games is offline
Apokalipsisa
Member
Join Date: May 2012
Old 07-28-2014 , 06:16   Re: How to restrict rcon commands?
Reply With Quote #3

Yes but some of the admins need to have rcon access....i know if i take the flag from them they can't use it,but i'm asking how to restrict this commands if they have the flag?
Apokalipsisa is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-28-2014 , 06:17   Re: How to restrict rcon commands?
Reply With Quote #4

I don't think it's possible to block a command when they have the flag.
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.
Just4Games is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-28-2014 , 07:30   Re: How to restrict rcon commands?
Reply With Quote #5

Quote:
but some of the admins need to have rcon access.
So, only give the "l" flag (which give the rcon access) to the certain admin. Do not give it to all admin.

Last edited by zmd94; 07-28-2014 at 07:30.
zmd94 is offline
Apokalipsisa
Member
Join Date: May 2012
Old 07-29-2014 , 11:59   Re: How to restrict rcon commands?
Reply With Quote #6

Oh man....i'm just asking how to block these commands.... If i delete them from zombieplague.cfg,will they stop working?If they not,is there anyway to catch this commandsin plugin,and if a command like "zp_human" is used,the admin will be kicked?
Apokalipsisa is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-29-2014 , 12:08   Re: How to restrict rcon commands?
Reply With Quote #7

You can't block something if you have access to it!
What i mean is if the admin have the "l" flag, that admin will be able to execute commands through RCON!
What we just said was to delete the "l" flag to the admins that don't need it and keep for those you want to have the flag!
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.
Just4Games is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 07-31-2014 , 19:37   Re: How to restrict rcon commands?
Reply With Quote #8

You can disable these commands entirely by removing them from ZP 4.3 source (SMA).

Find and delete this section:
Code:
// Admin commands register_concmd("zp_zombie", "cmd_zombie", _, "<target> - Turn someone into a Zombie", 0) register_concmd("zp_human", "cmd_human", _, "<target> - Turn someone back to Human", 0) register_concmd("zp_nemesis", "cmd_nemesis", _, "<target> - Turn someone into a Nemesis", 0) register_concmd("zp_survivor", "cmd_survivor", _, "<target> - Turn someone into a Survivor", 0) register_concmd("zp_respawn", "cmd_respawn", _, "<target> - Respawn someone", 0) register_concmd("zp_swarm", "cmd_swarm", _, " - Start Swarm Mode", 0) register_concmd("zp_multi", "cmd_multi", _, " - Start Multi Infection", 0) register_concmd("zp_plague", "cmd_plague", _, " - Start Plague Mode", 0)
After that, recompile (you shouldn't get any errors).
__________________

Last edited by MeRcyLeZZ; 07-31-2014 at 19:43.
MeRcyLeZZ 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 17:49.


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