Raised This Month: $ Target: $400
 0% 

howto disable rcon_password use?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xlenonz
Member
Join Date: Jun 2007
Old 02-10-2009 , 03:46   howto disable rcon_password use?
Reply With Quote #1

hi ,

i want disable rcon_password use.

admins cant use rcon_password , i want that.
so

i must edit admincmd.sma and
if arg rcon_password , reject that.

arg variable come with , "rcon_password abc" < this type how to i reject that ?
PHP Code:
public cmdRcon(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED
    
    
new arg[128], authid[32], name[32]
    
    
read_args(arg127)
    
get_user_authid(idauthid31)
    
get_user_name(idname31)
    
log_amx("Cmd: ^"%s<%d><%s><>^" server console (cmdline ^"%s^")"nameget_user_userid(id), authidarg)
    
    
console_print(id"[AMXX] %L"id"COM_SENT_SERVER"arg)
    
server_cmd("%s"arg)
    
    return 
PLUGIN_HANDLED

xlenonz is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-10-2009 , 03:50   Re: howto disable rcon_password use?
Reply With Quote #2

add this after read_args(arg, 127)
Code:
if ( contain(arg, "rcon_password") != -1 )
    return PLUGIN_HANDLED
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
xlenonz
Member
Join Date: Jun 2007
Old 02-10-2009 , 04:02   Re: howto disable rcon_password use?
Reply With Quote #3

thanks , now disable.
xlenonz is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-10-2009 , 05:48   Re: howto disable rcon_password use?
Reply With Quote #4

just type rcon_password "" in server console and rcon won't be used. or remove L flag from admin access
Owyn is offline
Send a message via ICQ to Owyn
xlenonz
Member
Join Date: Jun 2007
Old 02-10-2009 , 11:12   Re: howto disable rcon_password use?
Reply With Quote #5

i use webmod for servers use rcon, and admins need L flag and admins dont change password so i need that
xlenonz 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:01.


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