16.03.2014, 16:01
Hi, I have a simple question about the Kick(playerid).
I made this function:
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?
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); }
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?