Raised This Month: $ Target: $400
 0% 

RCON Kick command (Kicks RCON admins)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Churchboy587
BANNED
Join Date: Oct 2008
Old 11-01-2008 , 14:38   RCON Kick command (Kicks RCON admins)
Reply With Quote #1

I need a simple script that kicks RCON admins, this as far as I can get before I get lost with this script:
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "RCONKick"
#define VERSION "1.0"
#define AUTHOR "Bloodshot"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /rconkick 
A RCON admin has ability to change cvars for me, so that is what I need
Thanks!
Churchboy587 is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-01-2008 , 15:02   Re: RCON Kick command (Kicks RCON admins)
Reply With Quote #2

Well...using cmd_target and num 1 = obey immunity
__________________

anakin_cstrike is offline
Churchboy587
BANNED
Join Date: Oct 2008
Old 11-01-2008 , 15:15   Re: RCON Kick command (Kicks RCON admins)
Reply With Quote #3

Yes but this doesn't obey immunity, it can counter it. You see, there was a server (here is admin manual)http://ownageclan.com/adminmanual1.php that I played once, and it had a RCON Kick command, so you can kick other admins with immunity if they were abusing their powers. I may wanna add a ban command too

On the link, scroll down on that page and you will see the command...
Churchboy587 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-01-2008 , 20:30   Re: RCON Kick command (Kicks RCON admins)
Reply With Quote #4

try this:

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "RCONKick"
#define VERSION "1.0"
#define AUTHOR "Alucard"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("amx_rconkick""cmdRconkick"ADMIN_RCON)
}

public 
cmdRconkick(idlevelcid) {
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED

    
new arg[32]
    
read_argv(1arg31)
    new 
player cmd_target(idargCMDTARGET_ALLOW_SELF)
    
    if (!
player)
        return 
PLUGIN_HANDLED
    
    
new authid[32], name[32], userid2
    
    get_user_authid
(idauthid31)
    
get_user_name(playername31)
    
userid2 get_user_userid(player)

    if (
is_user_admin(player))
        
server_cmd("kick #%d"userid2)
    
    
console_print(id"Admin ^"%s^" kicked"name)
    
    return 
PLUGIN_HANDLED

not tested
Alucard^ is offline
Send a message via Skype™ to Alucard^
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-01-2008 , 21:01   Re: RCON Kick command (Kicks RCON admins)
Reply With Quote #5

Hes been banned. I don't think theirs any use, unless someone else wants to use it
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
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 16:20.


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