30.09.2012, 00:06
(
Последний раз редактировалось basse; 30.09.2012 в 01:38.
)
pawn Код:
dcmd_kick(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new ID;
new pname[24];
new string[200];
new reason;
if(sscanf(params, "uz", ID, reason)) return SendClientMessage(playerid, COLOR_RED, "Usage: /kick (ID) (REASON)");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
GetPlayerName(playerid, pname,24);
GetPlayerName(ID);
format(string, 200, "[ADMIN KICK] %S", reason);
SendClientMessageToAll(COLOR_GREEN, string);
format(string, 200, "[ADMIN ACTION] Admin has kicked %s(%d) %s", pname, ID, reason);
Kick(ID);
return 1;
}
return SendClientMessage(playerid, COLOR_RED, "You Are Not An Admin");
}