Problem with /ban command.
#1

Can't get it working..
pawn Код:
CMD:ban(playerid, params[]) {
    if(Playerinfo[playerid][Adminlevel] >= 1) {

        new banID, Phjus[64];
        if(sscanf(params, "us[64]", banID, Phjus))
        return SendClientMessage(playerid, TAVALINE, "Хige vorm: /ban [Mдngija ID][Pхhjus]");

        if(banID == INVALID_PLAYER_ID)
        return SendClientMessage(playerid, TAVALINE, "See kasutaja ei ole serveris.");

        new admininimi[24], bannitudnimi[24], string[128];

        GetPlayerName(playerid, admininimi, 24);
        GetPlayerName(banID, bannitudnimi, 24);
        format(string, sizeof(string), "Administraator %s bannis kasutaja %s. Pхhjus - %s", admininimi, bannitudnimi, Phjus);
        SendClientMessageToAll(TAVALINE, string);
        BanEx(banID, Phjus);
    }
    return 1;
}
Reply


Messages In This Thread
Problem with /ban command. - by Eeeh - 20.06.2011, 10:54
Re: Problem with /ban command. - by Vince - 20.06.2011, 10:59
Re: Problem with /ban command. - by Eeeh - 20.06.2011, 11:15
Re: Problem with /ban command. - by M4z - 20.06.2011, 19:48
Re: Problem with /ban command. - by =WoR=Varth - 20.06.2011, 20:03
Re: Problem with /ban command. - by Eeeh - 20.06.2011, 20:33
Re: Problem with /ban command. - by =WoR=Varth - 20.06.2011, 21:01
Re: Problem with /ban command. - by Gertin - 20.06.2011, 21:31
Re: Problem with /ban command. - by Eeeh - 21.06.2011, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)