Help!!
#6

Your script is a real mess. Here, use this:

pawn Код:
CMD:kick(playerid, params[]) {
    new id, r;
    if(sscanf(params, "uz", id, r)) {
        if(IsPlayerAdmin(playerid)) {
            if(id != INVALID_PLAYER_ID) {
                new name[MAX_PLAYER_NAME], str[128];
                GetPlayerName(id, name, MAX_PLAYER_NAME);
                format(str, sizeof(str), "An Admin has kicked %s. Reason: %s", name, r);
                SendClientMessageToAll(COLOR_LIGHTBLUE, str);
                Kick(id);
            }
            else return SendClientMessage(playerid, COLOR_GREY, "Error: Player not found");
        }
        else return SendClientMessage(playerid, COLOR_BRIGHTRED, "You have no acces to this command");
    }
    else return SendClientMessage(playerid, COLOR_ORANGE, "Syntax Error: /kick [playerid/partofname] [reason (optional)]");
    return 1;
}
Reply


Messages In This Thread
Help!! - by BASITJALIL - 13.04.2011, 14:57
Re: Help!! - by iJumbo - 13.04.2011, 14:58
Re: Help!! - by Rivera - 13.04.2011, 14:58
Re: Help!! - by BASITJALIL - 13.04.2011, 14:59
Re: Help!! - by iJumbo - 13.04.2011, 15:05
Re: Help!! - by Rivera - 13.04.2011, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)