05.08.2009, 09:47
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
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; } |