help me with this please.
#10

Your command is all messed up.
pawn Код:
CMD:kick(playerid, params[])
{
    new
        id,
        name[25],
        namevictim[25],
        reason[128],
        str[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You may not use this command");
    if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,-1,"USAGE:/kick [ID] [REASON]");
    if(id == playerid) return SendClientMessage(playerid,COLOR_RED,"You can kick your self");
    if(IsPlayerAdmin(id))return SendClientMessage(playerid, COLOR_RED, "You can't kick a nother admin");
    if(!IsPlayerConnected(id))return SendClientMessage(playerid,COLOR_RED, "That player isn't connected");
    GetPlayerName(playerid,name,25);
    GetPlayerName(id,namevictim,25);
    format(str,128,"Admin: %s(%d) has kick %s(%d) Reason %s",name,playerid,namevictim,id,reason);
    SendClientMessageToAll(-1,str);
    Kick(id);
    return 1;
}
Reply


Messages In This Thread
help me with this please. - by Gangster-rocks - 14.07.2012, 13:31
Re: help me with this please. - by Andi_Evandy - 14.07.2012, 13:37
Re: help me with this please. - by Gangster-rocks - 14.07.2012, 13:46
Re: help me with this please. - by [MM]RoXoR[FS] - 14.07.2012, 13:50
Re: help me with this please. - by Devilxz97 - 14.07.2012, 13:55
Re: help me with this please. - by Andi_Evandy - 14.07.2012, 13:57
Re: help me with this please. - by clarencecuzz - 14.07.2012, 13:58
Re: help me with this please. - by Andi_Evandy - 14.07.2012, 13:59
Re: help me with this please. - by clarencecuzz - 14.07.2012, 14:03
Re: help me with this please. - by leonardo1434 - 14.07.2012, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)