Raised This Month: $ Target: $400
 0% 

Maybe interesting for server admins :)


Post New Thread Reply   
 
Thread Tools Display Modes
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 03-29-2008 , 05:40   Re: Maybe interesting for server admins :)
Reply With Quote #11

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{   
    
register_plugin("block rcon & enable for admins""eldur""rudle")
    
register_clcmd("rcon""cmd_rcon")
}

public 
cmd_rcon(id) {
    new 
authid[32]
    
    if(
is_user_admin(id))
    return 
PLUGIN_HANDLED_MAIN
    
    server_cmd
("amx_kick %s^nRcon Attempt^n"get_user_authid(idauthid[31], 31))
    return 
PLUGIN_HANDLED_MAIN

rudle is offline
cs1.6
Senior Member
Join Date: Dec 2006
Old 03-29-2008 , 06:21   Re: Maybe interesting for server admins :)
Reply With Quote #12

good idea! + it looks good

plus: you seem you need some +karma..lol ;)

so, i will give, as soon as i can spread karma again.
cs1.6 is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 03-29-2008 , 11:44   Re: Maybe interesting for server admins :)
Reply With Quote #13

I can already tell you that, that script will not work...rcon is handled differently than all the other commands
__________________
hoboman is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 03-29-2008 , 13:30   Re: Maybe interesting for server admins :)
Reply With Quote #14

Odds are he hit a key bound to rcon a server he administers to scrim / pub mode or something similar.

An rcon scanner, I would imagine, would send it remotely, and not need to be connected to the server as a client.
__________________
fyren sucks
sawce is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 03-29-2008 , 14:46   Re: Maybe interesting for server admins :)
Reply With Quote #15

But if it was server side and he used amx_cfg blah/test.cfg and then it was rcon_password 19329429
rcon accepted
echo rcon_password ('null')
start ...

then the odd's it would work xD cant remember how you do this but is it
PHP Code:
if(is_user_admin(id) &(and)& ADMIN_RCON 
they have to have admin rcon to not get kicked.
rudle is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 03-30-2008 , 07:00   Re: Maybe interesting for server admins :)
Reply With Quote #16

You're looking for get_user_flags(). get_user_authid() doesn't return a string - it populates an array (which you delcared) and so it is that array you should pass to server_cmd().
Lee is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 03-30-2008 , 16:04   Re: Maybe interesting for server admins :)
Reply With Quote #17

Quote:
Originally Posted by Lee View Post
You're looking for get_user_flags(). get_user_authid() doesn't return a string - it populates an array (which you delcared) and so it is that array you should pass to server_cmd().
I don't get what you mean but i think this is what your talking about.

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> public plugin_init() {       register_plugin("block rcon & enable for admins", "eldur", "rudle")     register_clcmd("rcon", "cmd_rcon") } public cmd_rcon(id) {     new authid[32]         if(get_user_flags())     return PLUGIN_HANDLED_MAIN         server_cmd("amx_kick %s^nRcon Attempt^n", get_user_authid(id, authid[31], 31))     return PLUGIN_HANDLED_MAIN }
rudle is offline
cs1.6
Senior Member
Join Date: Dec 2006
Old 03-30-2008 , 20:55   Re: Maybe interesting for server admins :)
Reply With Quote #18

ey guyz, is it possible to actually add the player nick name into the banned.cfg ? Thats the only problem with the method of banning. After a while no one knows whos steam id is it! Like little bad doers, i unbann after a couple of days. Even allhackers and speedhackers..coz eventually (if they arent totally retarded , they will stop one day). But there are some...that should stay in there. Now if i had his nick in te banned i would of course see "oh, its his steam id, which better stays in there (for a while).

like:

server hi-jacker@warm up banid 0.0 STEAM_0:0:123456
player banid 0.0 STEAM_0:0:1234567
unnamed banid 0.0 STEAM_0:0:1234568

That would be really helpfull!

Or maybe even with reasoning? like:

server hi-jacker@warm up banid 0.0 STEAM_0:0:123456 hijack attempts
player banid 0.0 STEAM_0:0:1234567 speedhacker
unnamed banid 0.0 STEAM_0:0:1234568 did not stop wallhack (was warned)

is that possible in the banned.cfg?
cs1.6 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-31-2008 , 01:15   Re: Maybe interesting for server admins :)
Reply With Quote #19

Probably not. Why not just use a banning plugin that acts like AMXBans if you want that?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 03-31-2008 , 11:38   Re: Maybe interesting for server admins :)
Reply With Quote #20

Yeah you would need to ban them via webpage if you want them to show up like that if in banned.cfg then no that would be impossible.

So Amxbans or a custom one
I suggest Amxbans.
rudle 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 06:56.


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