Raised This Month: $ Target: $400
 0% 

howto disable rcon_password use?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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