/kick problem
#3

Quote:

CMD:kick(playerid,params[])
{
new id,name1[MAX_PLAYER_NAME], reason[35],name2[MAX_PLAYER_NAME], string[128];
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE,"You are not authorized to use this command");
if(sscanf(params,"uz",id,reason)) return SCM(playerid, COLOR_WHITE,"USAGE: /kick [playerid/partofname] [reason]");
if(!IsPlayerConnected(id)) return SCM(playerid, COLOR_WHITE,"Invalid player id");
else
{
GetPlayerName(playerid,name1,sizeof(name1));
GetPlayerName(id,name2,sizeof(name2));
format(string, sizeof(string),"AdmCmd: %s was kicked by %s, reason: %s",name2,name1,reason);
SendClientMessageToAll(COLOR_LIGHTRED,string);
Kick(id);
}
return 1;
}

MY CMD, just edit the admin level or w/e, works fine for me
Reply


Messages In This Thread
/kick problem - by MrBorsh - 14.09.2012, 20:16
Re: /kick problem - by Silvarray - 14.09.2012, 20:24
Re: /kick problem - by RLGaming - 14.09.2012, 20:25
Re: /kick problem - by MrBorsh - 14.09.2012, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)