Help /startlotto
#2

pawn Код:
forward Lotto(number);



if(strcmp(cmd, "/startlotto", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1337)
            {
                format(string, sizeof(string), "Lotary news: The lotary has begun.");
                OOCOff(COLOR_WHITE, string);
                new rand = random(80);
                if(rand < 77) { rand += 3; }
                SetTimerEx("Lotto", 2 * 60 * 1000, 0, "d", rand);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Ne ste admin !");
                return 1;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Help /startlotto - by Dark Crow - 24.02.2012, 19:04
Re: Help /startlotto - by dice7 - 24.02.2012, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)