[Ajuda] Flood no payday
#6

Eu fiz, mas continua floodando, olha como ficou:
Код:
public Lotto(number)
{
 	new JackpotFallen = 0;
 	for(new i = 0; i < MAX_PLAYERS; i++)
	{
 	format(gstring, sizeof(gstring), "Loterica: Hoje o numero sorteado foi o nє %d.", number);
        SendClientMessage(i, COLOR_WHITE, gstring);
	{
		if(IsPlayerConnected(i))
		{
		    if(PlayerInfo[i][pLottoNr] > 0)
		    {
			    if(PlayerInfo[i][pLottoNr] == number)
			    {
			        JackpotFallen = 1;
					format(gstring, sizeof(gstring), "Loterica: %s ganhou R$%d com seu bilhete.", PlayerName(i), Jackpot);
					SendClientMessage(i, COLOR_WHITE, gstring);
					format(gstring, sizeof(gstring), "* Vocк ganhou R$%d com seu bilhete de loteria.", Jackpot);
					SendClientMessage(i, COLOR_YELLOW, gstring);
					ConsumingMoney[i] = 1;
					GivePlayerMoney(i, Jackpot);
			    }
			    else
			    {
			        SendClientMessage(i, COLOR_GREY, " Vocк nгo tem um bilhete.");
			    }
			}
			PlayerInfo[i][pLottoNr] = 0;
		}
	}
	if(JackpotFallen)
	{
	    new rand = random(125000); rand += 15789;
	    Jackpot = rand;
	    SaveStuff();
	    format(gstring, sizeof(gstring), "Loterica: O prкmio acumulou para: R$%d.", Jackpot);
	    SendClientMessage(i, COLOR_WHITE, gstring);
	}
	else
	{
	    new rand = random(15000); rand += 2158;
	    Jackpot += rand;
	    SaveStuff();
	    format(gstring, sizeof(gstring), "Loterica: O prкmio acumulou para: R$%d.", Jackpot);
	    SendClientMessage(i, COLOR_WHITE, gstring);
		}
	}
	return true;
}
Reply


Messages In This Thread
Flood no payday - by lokos45 - 14.09.2013, 23:07
Re: Flood no payday - by RebeloX - 14.09.2013, 23:33
Re: Flood no payday - by lokos45 - 15.09.2013, 00:40
Re: Flood no payday - by lokos45 - 15.09.2013, 21:29
Re: Flood no payday - by Don_Speed - 15.09.2013, 21:35
Re: Flood no payday - by lokos45 - 15.09.2013, 23:09
Re: Flood no payday - by Don_Speed - 15.09.2013, 23:16
Re: Flood no payday - by lokos45 - 15.09.2013, 23:42
Re: Flood no payday - by mau.tito - 15.09.2013, 23:56
Re: Flood no payday - by lokos45 - 16.09.2013, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)