SendClientMessage on /kick doesn't work
#4

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);
Reply


Messages In This Thread
Bug: /ban is crashing the server/rcon - by Zmith - 17.05.2015, 21:41
Re: SendClientMessage on /kick doesn't work - by Konstantinos - 17.05.2015, 21:44
Re: SendClientMessage on /kick doesn't work - by Zmith - 17.05.2015, 22:08
Re: SendClientMessage on /kick doesn't work - by Konstantinos - 17.05.2015, 22:13
Re: SendClientMessage on /kick doesn't work - by Zmith - 18.05.2015, 01:19

Forum Jump:


Users browsing this thread: 1 Guest(s)