startlotto
#1

hey, i need help again,i got /startlotto cmd,i want that to do automatically every full hour,how can i do that?

heres the CMD

Quote:

if(strcmp(cmd, "/startlotto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
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;
}

Reply


Messages In This Thread
startlotto - by WardenCS - 05.08.2009, 09:47
Re: startlotto - by SiJ - 05.08.2009, 09:55
Re: startlotto - by Kyle - 05.08.2009, 09:55
Re: startlotto - by Kyle - 05.08.2009, 09:55
Re: startlotto - by SiJ - 05.08.2009, 09:56
Re: startlotto - by WardenCS - 05.08.2009, 09:59
Re: startlotto - by Kyle - 05.08.2009, 10:03
Re: startlotto - by WardenCS - 05.08.2009, 10:05
Re: startlotto - by Cracker - 20.08.2009, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)