05.03.2018, 16:33
Hello everyone
I've got this code:
The problem is - All players can see the message in chat except of the banned player.
The same situation will happen with Kick function. Why? Thanks in advance for a help
I've got this code:
PHP код:
new string[128];
format(string, sizeof(string), "Admin %s[%i] just has banned player %s[%i]. [Reason: %s]", PlayerName(playerid), playerid, PlayerName(id), id, param2);
SendClientMessageToAll(0xFF0000FF, string); // I will send a message to all at first
BanEx(id, param2); // I will ban the player
The same situation will happen with Kick function. Why? Thanks in advance for a help