13.06.2014, 03:40
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:
Lemme know if there are any issues, I'm sure there probably will be.
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;