17.05.2015, 22:13
You should get the IP after sscanf and after checking if the "targetid" is valid/connected otherwise you get the IP from player with ID 0.
pawn Код:
new message2[25];
GetPlayerIp(targetid, message2, 16);
format(message2, sizeof(message2), "banip %s", message2);
SendRconCommand(message2);