09.04.2013, 21:28
The problem is that the script kicks before the message is visible.
This is on every point where Kick is used.
Here's the code
This is on every point where Kick is used.
Here's the code
PHP код:
CMD:kick(playerid, params[])
{
if(UserStats[playerid][role] <2) return ShowBottomText(playerid, ERROR_1);
new user, message[64], string[128];
if(sscanf(params, "us[64]", user, message)) return SendClientMessage(playerid, -1, "Usage: /kick [player][reason]");
format(string, sizeof(string), "Staff action: %s kicked %s. Reason: %s", GetRPName(playerid), GetRPName(user), message);
SendClientMessageToAll(0xFF0000FF, string);
Kick(user);
return 1;
}