Range Banning
#2

Well, this basically looks like a mess. You define the players IP via GetPlayerIP and then format their IP again, changing it's value. Try this:
pawn Код:
new ip[16], ipaddress[50], banningip[16];
GetPlayerIP(id, ip, 16);
strdel(ipaddress, strlen(ip)-4, strlen(ip));
format(ipaddress, sizeof(ipaddress), "%s**.**", ip);
format(banningip, sizeof(banningip), "banip %s", ipaddress);
SendRconCommand(banningip);
SendRconCommand("reloadbans");
SendAdm(playerid, "RBAN");
return 1;
Lemme know if there are any issues, I'm sure there probably will be.
Reply


Messages In This Thread
Range Banning - by sgtph3n1x - 13.06.2014, 03:34
Re: Range Banning - by nmader - 13.06.2014, 03:40
Re: Range Banning - by sgtph3n1x - 13.06.2014, 03:51
Re: Range Banning - by nmader - 13.06.2014, 04:01
Re: Range Banning - by sgtph3n1x - 13.06.2014, 04:07
Re: Range Banning - by nmader - 13.06.2014, 04:11
Re: Range Banning - by sgtph3n1x - 13.06.2014, 04:32
Re: Range Banning - by Laure - 13.06.2014, 05:14
Re: Range Banning - by Threshold - 13.06.2014, 06:35
Re: Range Banning - by Laure - 13.06.2014, 07:38

Forum Jump:


Users browsing this thread: 2 Guest(s)