/ban on 3 languages
#2

Код:
CMD:ban(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
    {
        new tmp[256], tmp2[256], Index, i, string[256];
        tmp = strtok(params,Index), tmp2 = strtok(params,Index);

        if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Napisi: /ban [ID] [razlog]");

        new kohde;
        kohde = strval(tmp);

        if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "Napisi: /ban [ID] [razlog]");


        if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Netocan ID");

        if(IsPlayerConnected(i))
        {
            if (IgracInfo[playerid][Jezik] == 1) format(string, sizeof(string), "BAN: %s e baniran. (pricina: %s)", PlayerName(kohde), params[2]);
            else if (IgracInfo[playerid][Jezik] == 2) format(string, sizeof(string), "BAN: %s Je banan sa servera. (razlog: %s)", PlayerName(kohde), params[2]);
            else if (IgracInfo[playerid][Jezik] == 3) format(string, sizeof(string), "BAN: %s is banned. (%s)", PlayerName(kohde), params[2]);
            SendClientMessageToAll(COLOR_RED, string);
        }
        return BanEx(kohde, string);
    }
    return 1;
}
Reply


Messages In This Thread
/ban on 3 languages - by mariokumanovac - 27.07.2010, 13:43
Re: /ban on 3 languages - by BaRRyS3R - 27.07.2010, 13:45
Re: /ban on 3 languages - by mariokumanovac - 27.07.2010, 16:54
Re: /ban on 3 languages - by Davz*|*Criss - 08.03.2011, 10:21
Re: /ban on 3 languages - by [WF]Demon - 08.03.2011, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)