About Kick(playerid)
#1

Hi, I have a simple question about the Kick(playerid).
I made this function:
Код:
stock KickPlayer(playerid, kickedby, reason[])
{
	new string[256];
	format(string, sizeof(string), "You've been kicked by %s. Reason: %s\n", GetName(playerid), reason);
	SendClientMessage(kickedby, COLOR_RED, string);
	return Kick(kickedby);
}
and I called this function on some OnPlayerCommandText code.
Why when I use the function I can't see the SendCliendMessage? It displays just the "Server close the connection." message, why? How can I fix that?
Reply


Messages In This Thread
About Kick(playerid) - by Gilmar - 16.03.2014, 16:01
Re: About Kick(playerid) - by Calabresi - 16.03.2014, 16:02
Re: About Kick(playerid) - by CuervO - 16.03.2014, 16:03
Re: About Kick(playerid) - by Abagail - 16.03.2014, 16:05
Re: About Kick(playerid) - by Gilmar - 16.03.2014, 16:18
Re: About Kick(playerid) - by Abagail - 16.03.2014, 16:19
Re: About Kick(playerid) - by Gilmar - 16.03.2014, 16:22
Re: About Kick(playerid) - by Jessyy - 16.03.2014, 16:28
Re: About Kick(playerid) - by Calabresi - 16.03.2014, 16:28

Forum Jump:


Users browsing this thread: 2 Guest(s)