CMD:kick(playerid,params[])
{
if(SpielerInfo[playerid][pAdmin] < 1)return SendClientMessage(playerid,COLOR_RED,"You aren't Authorized to use this Command!");
new pID,Name[MAX_PLAYER_NAME],kName[MAX_PLAYER_NAME],reason[100],string[150];
GetPlayerName(playerid,Name, sizeof(Name));
GetPlayerName(pID,kName, sizeof(kName)); CMDMessageToAdmins(playerid,"KICK");
if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,COLOR_GREY,"USAGE: /kick [ID] [REASON/WITH]");
format(string, sizeof(string),"Adminstrator %s has Kicked user %s! Reason: %d",kName, Name,reason);
SendClientMessageToAll(COLOR_RED,string);
SendClientMessage(pID,COLOR_RED,"You have been Kicked by an Adminstrator/Server!");
SpielerInfo[pID][pKicks] ++;
SavePlayer(pID);
SetTimerEx("_Kick",100,0,"i",pID);
return 1;
}
forward _Kick(playerid);
public _Kick(playerid)
{Kick(playerid);}