Jump to content
  • 0

Intrebare Lotto automat


Ch1NeZu

Question

Salut ... am o intrebare despre lotto ca sa se dea start la loterie trb sa dai /startlotto din admin se poate face sa se dea automat startlotto la un anumit timp ? de exemplu la fiecare payday sau o data la 3 ore sa se dea automat start lotto se poate ?

Uitati comanda

if(strcmp(cmd, "/startlotto", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 1337)
	        {
	            format(string, sizeof(string), "Lottery News: We have started the Lottery Election.");
	            OOCOff(COLOR_WHITE, string);
	            new rand = random(80);
	            if(rand < 77) { rand += 3; }
	            Lotto(rand);
	        }
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You are not an Admin !");
	            return 1;
	        }
	    }
		return 1;
	}

Samp.OnlyPro.ro - RolePlay - Join Us !

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.