24.02.2012, 19:09
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;
}