19.06.2010, 11:12
Hi,
I wanted to know how I would add the admin level to a command, ive tried allsorts.
This is basicly, what I want
I wanted to know how I would add the admin level to a command, ive tried allsorts.
This is basicly, what I want
Код:
dcmd_kick(playerid, params[])
{
new iD, Message[128];
new eAccount[MAX_PLAYER_NAME];
if (sscanf(params, "u", iD)) SendClientMessage(playerid, COLOR_WHITE, "~ Usage: /kick [playerid]");
else if (iD == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "~ Inactive Player");
else
{
Kick(iD);
GetPlayerName(playerid, eAccount, MAX_PLAYER_NAME);
format(Message, sizeof(Message), "~ %s has been kicked from the server.", eAccount);
SendClientMessageToAll(COLOR_RED, Message);
}
}
return 1;
}

