Random command help ! pls.
#1

Hi. I want to make several missions


/mission 1

/mission 2

but i want to make a single command /mission and randomly to give those missions [1,2,3] and 1 mission per hour, even if the same mission gets repeated.


ex.

Player on East LS. Types /mission

Error mesage: Go to Army Stadion . (Places checkpoint on Army Stadion)
He goes into checkpoint, types /mission.
He gets random mission.

How can i start?

PHP код:
CMD:mission(playerid)

if (
IsPlayerInCheckpoint(playerid))
{
DisablePlayerCheckpoint(playerid)
 
GiveMission(playeridrandom);
}
else  return  
SendClientMessage(playerid, -1""chat" Go to Military Base to get a mission");

is this good?
Reply


Messages In This Thread
Random command help ! pls. - by Zeus666 - 17.03.2018, 14:43
Re: Random command help ! pls. - by jasperschellekens - 17.03.2018, 15:18
Re: Random command help ! pls. - by Zeus666 - 17.03.2018, 15:22
Re: Random command help ! pls. - by jasperschellekens - 17.03.2018, 15:24
Re: Random command help ! pls. - by Zeus666 - 17.03.2018, 15:29
Re: Random command help ! pls. - by jasperschellekens - 17.03.2018, 15:30
Re: Random command help ! pls. - by Zeus666 - 17.03.2018, 15:32
Re: Random command help ! pls. - by jasperschellekens - 17.03.2018, 15:37
Re: Random command help ! pls. - by Zeus666 - 17.03.2018, 15:48
Re: Random command help ! pls. - by jasperschellekens - 17.03.2018, 15:50

Forum Jump:


Users browsing this thread: 5 Guest(s)