Random mission
#2

Quote:
Originally Posted by Longover
Посмотреть сообщение
Hi!

why i get everytime the mission 1?

Код:
public missionTimer()
{
	if(mission != 1 || mission != 2 || mission != 3 || mission != 4 || mission != 5 || mission != 6)
	{
		new mss;
		mss = 1 + random(1);
		if(mss == 1)
		{
			mission = 1;
			foreach(new i : Player)
			{
				if (isLEO(i))
				{
					SendClientMessage(i, COLOR_PURPLE, "Misiunea 'Disparutul' a fost raportata ! (/startmission)");
				}
			}
		}
		if(mss == 2)
		{
			mission = 2;
			foreach(new i : Player)
			{
				if (isLEO(i))
				{
					SendClientMessage(i, COLOR_PURPLE, "Misiunea 'Alah akbar!' a fost raportata ! (/startmission)");
				}
			}
		}
	}
	return 1;
}
Someone?
Reply


Messages In This Thread
Random mission - by Longover - 10.11.2018, 21:01
Re: Random mission - by Longover - 10.11.2018, 21:13
Re: Random mission - by lollypap54 - 10.11.2018, 22:42
Re: Random mission - by DarkBr - 10.11.2018, 22:54
Re: Random mission - by Longover - 12.11.2018, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)