Range Banned in Range of Ip
#1

Hello guys im trying create range ban cmd but i cant T_T
So now Im Using JakAdmin

Can Someone Help me please ? range ban by /rban [playerid] [reason]

plz use normal cmd or zcmd plz thank you very muchhhhhh
Reply
#2

What does range banned ip do? hmmm
Reply
#3

Download a good admin system that has range bans and see how they do it. Basically you ban on the last X bytes of the IP address (most commonly the last 255 or 255 * 255 bytes, example 127.0.0.* / 127.0.*.*) and check if a player's IP is in that range.
Reply
#4

pawn Код:
#define RANGE_IP_TO_CHECK "216.125"
public OnPlayerConnect(playerid )
{
      new ip[16]; GetPlayerIp(playerid, ip, 16 );
      if(strcmp(ip, RANGE_IP_TO_CHECK, false) != -1) return Kick( playerid );
}
Reply
#5

Quote:
Originally Posted by Sinner
Посмотреть сообщение
Download a good admin system that has range bans and see how they do it. Basically you ban on the last X bytes of the IP address (most commonly the last 255 or 255 * 255 bytes, example 127.0.0.* / 127.0.*.*) and check if a player's IP is in that range.
I don't think that "range ban" works. If they had(most of them do) a dynamic ip, the whole ip(*.*.*.*) will be changed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)