29.10.2015, 16:17
Hi there, as the title says, my kick command doesn't work, can someone EXPLAIN to me why isn't it working and how to repair it ?
The command isn't finished so it doesn't need to kick the player, for the moment, ofc.
The command isn't finished so it doesn't need to kick the player, for the moment, ofc.
PHP код:
CMD:kick(playerid, params[])
{
if(Player[playerid][Admin] >= 1)
{
new toplayerid, reason[24], string[126];
if (!sscanf(params, "ii", toplayerid, reason))
{
format(string, sizeof(string), "%s has been kicked by %s, reason: %s", toplayerid, playerid, reason);
SendClientMessageToAll(color_red, string);
}
else SendClientMessage(playerid, color_grey, "UTILIZARE:/kick <playerid/name> <motiv>");
}
else SendClientMessage(playerid, color_grey, "You are not authorized to use that command.");
return 1;
}