AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking specific STEAM ID's (https://forums.alliedmods.net/showthread.php?t=160109)

Diegorkable 06-25-2011 06:48

Blocking specific STEAM ID's
 
Hey guys
I want to make a mod that blocks specific STEAM IDs from connecting to my server, how can I make that mod? how will it look like?

Example: I want to block STEAM_0:0:1241251251 from connection to my server, it will say something like "Blocked" when he tries to connect.

Dr7sTyLe 06-25-2011 06:49

Re: Blocking specific STEAM ID's
 
AMX_BAN ?

Diegorkable 06-25-2011 06:53

Re: Blocking specific STEAM ID's
 
no no.... people usually go over that. I used to amx_ban people and they still came back.
I want to block ANY type of connection from them, pinging my server, connecting, anything like that.

The reason for this is that someone keeps pinging my server or something like that, I don't know if he's bug abusing the server or something to make it fall all the time and crash....
I ban him and he comes back just a second after.

I installed the following protections:

HLShield
Anti F1 Abuse Bug

I tried to ask here and other places, people told me that if my server is original server (which it is) and not from the cracked version, it shouldnt crash, but suprisingly it does by some little kids messing with my server, and i'm totally helpless, I need a professional's advice in scripting of how to protect my server...

Dr7sTyLe 06-25-2011 09:13

Re: Blocking specific STEAM ID's
 
Quote:

Originally Posted by Diegorkable (Post 1495984)
no no.... people usually go over that. I used to amx_ban people and they still came back.
I want to block ANY type of connection from them, pinging my server, connecting, anything like that.

The reason for this is that someone keeps pinging my server or something like that, I don't know if he's bug abusing the server or something to make it fall all the time and crash....
I ban him and he comes back just a second after.

I installed the following protections:

HLShield
Anti F1 Abuse Bug

I tried to ask here and other places, people told me that if my server is original server (which it is) and not from the cracked version, it shouldnt crash, but suprisingly it does by some little kids messing with my server, and i'm totally helpless, I need a professional's advice in scripting of how to protect my server...

its me -_-
im crashing it, but im not even on the server :)

Hunter-Digital 06-25-2011 09:51

Re: Blocking specific STEAM ID's
 
Quote:

Originally Posted by Diegorkable (Post 1495984)
no no.... people usually go over that. I used to amx_ban people and they still came back.
I want to block ANY type of connection from them, pinging my server, connecting, anything like that.

amx_ban bans people from by their SteamID, but getting SteamID can take a while... sometimes it happens before player even starts to load and sometimes even minutes after they joined... it's up to the steam connection.
And unless you have a non-steam server it's not a problem since they'll be banned again once the SteamID is confirmed.

If you got DoS problems, use a (better) firewall.



Quote:

Originally Posted by Dr7sTyLe (Post 1496063)
its me -_-
im crashing it, but im not even on the server :)

:) nice, I think you deserve a sledgehammer swing at your PC as a reward.

Seriously, just leave the guy's server alone and go play somewhere else if you don't like it.

Dr7sTyLe 06-25-2011 11:07

Re: Blocking specific STEAM ID's
 
Quote:

Originally Posted by Hunter-Digital (Post 1496089)
amx_ban bans people from by their SteamID, but getting SteamID can take a while... sometimes it happens before player even starts to load and sometimes even minutes after they joined... it's up to the steam connection.
And unless you have a non-steam server it's not a problem since they'll be banned again once the SteamID is confirmed.

If you got DoS problems, use a (better) firewall.




:) nice, I think you deserve a sledgehammer swing at your PC as a reward.

Seriously, just leave the guy's server alone and go play somewhere else if you don't like it.

Bot They Are Getting Into My Server With Their Server Ip
And I Dont Want To Use Anti-Commerce Their Problem.. :)
and they are creating confernce calls and flooding the chat with the fucking ip -_-

Exolent[jNr] 06-25-2011 11:34

Re: Blocking specific STEAM ID's
 
Quote:

Originally Posted by Diegorkable (Post 1495984)
no no.... people usually go over that. I used to amx_ban people and they still came back.
I want to block ANY type of connection from them, pinging my server, connecting, anything like that.

The reason for this is that someone keeps pinging my server or something like that, I don't know if he's bug abusing the server or something to make it fall all the time and crash....
I ban him and he comes back just a second after.

I installed the following protections:

HLShield
Anti F1 Abuse Bug

I tried to ask here and other places, people told me that if my server is original server (which it is) and not from the cracked version, it shouldnt crash, but suprisingly it does by some little kids messing with my server, and i'm totally helpless, I need a professional's advice in scripting of how to protect my server...

1. Is your server Non-Steam?
2. If your server is Steam, are you running dproto?
3. If your server is Steam without dproto, have you tried the fixed amx_ban which properly bans players?

avril-lavigne 06-25-2011 13:14

Re: Blocking specific STEAM ID's
 
Its easy man
just ban them using Iptables or IPsec policy management in MMC on Windows!

Spawner30 03-07-2014 08:08

Re: Blocking specific STEAM ID's
 
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Block A Specific Steamid"
#define VERSION "1.0"
#define AUTHOR "Spawner20"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
client_authorized(client)
{
    static 
Steamid[33]
    
get_user_authid(client,Steamid,32)
    if (
equali(Steamid,"STEAM_0:0:1241251251"))
    
client_cmd(client,"disconnect",get_user_userid(client));



Spawner30 03-07-2014 08:12

Re: Blocking specific STEAM ID's
 
You Can Add
PHP Code:

client_cmd(client,"echo Your Steam Id Has Been Blocked",get_user_userid(client)); 

Or Something Like That :wink:


All times are GMT -4. The time now is 23:23.

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