Warning help. -
pawn Код:
CMD:kick(playerid, params[])
{
new str[128], id, reason[50], name[MAX_PLAYER_NAME];
if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[KICK]){
format(str, 128, "{FF3300}You must be a level %d administrator to use that command!", gCommands[KICK])
SendClientMessage(playerid, COLOR_ORANGE, str);
return 1;
}
if(sscanf(params, "ds[50]", id, reason)) return SendClientMessage(playerid, COLOR_ORANGE, "{FF3300}USAGE: /kick [playerid] [reason]");
format(str, 128, "[KICK] You have been kicked [[ %s ]]", reason);
SendClientMessage(id, 0xFF0000AA, str);
Kick(id);
GetPlayerName(id, name, MAX_PLAYER_NAME);
format(str, 128, "[KICK] %s has been kicked [[ %s ]]", name, reason);
SendClientMessageToAll(0xFF0000AA, str);
return 1;
}
Re : Warning help. -
Re: Re : Warning help. -
Re : Warning help. -
Re: Warning help. -
Re: Warning help. -
Re: Warning help. -
Re: Warning help. -
Re: Warning help. -
Re: Warning help. -