Kick- / Ban-Problem
#4

Nope, i have made a own command... didn't even work either.

Code:
pawn Код:
dcmd_dkick(playerid, params[])
{
    new Kickid;
   
  if(sscanf(params, "u", Kickid))SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dkick [playerid]");
  else if(IsPlayerAdmin(playerid)==0)SendClientMessage(playerid, COLOR_RED, "You Are Not An Admin!!!");
  else if(Kickid==playerid)SendClientMessage(playerid, COLOR_ORANGE, "You Cannot Kick Yourself!");
  else if(IsPlayerAdmin(Kickid))SendClientMessage(playerid, COLOR_RED, "You May Not Kick Admins!!!");
  else if(Kickid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
  else
  {
        new KickedName[MAX_PLAYER_NAME],AdminName[MAX_PLAYER_NAME],KickMessage[128];
        GetPlayerName(Kickid, KickedName, sizeof(KickedName));
        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(KickMessage, sizeof(KickMessage), "%s has been kicked by %s!", KickedName, AdminName);
        SendClientMessageToAll(COLOR_ORANGE, KickMessage);
       
        Kick(Kickid);
    }
 
    return 1;
}
For me it looks like it should work :S
Reply


Messages In This Thread
Kick- / Ban-Problem - by DeathOnaStick - 05.12.2009, 18:14
Re: Kick- / Ban-Problem - by DiddyBop - 05.12.2009, 18:33
Re: Kick- / Ban-Problem - by [NYRP]Mike. - 05.12.2009, 18:42
Re: Kick- / Ban-Problem - by DeathOnaStick - 05.12.2009, 18:58
Re: Kick- / Ban-Problem - by Niixie - 05.12.2009, 19:09
Re: Kick- / Ban-Problem - by DeathOnaStick - 05.12.2009, 19:11
Re: Kick- / Ban-Problem - by woot - 05.12.2009, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)