Random command help ! pls.
#2

You could give each mission an ID. And then use a random number to select the id.

PHP код:
GiveMission(playerid); 
I have something similar to select random fire scenes.

You could do something like this:

PHP код:
GiveMission(playerid)
{
    new 
MissionID randomEx(1,3); Will output random number 1-3
    
if(MissionID == 1)
    {
        
//start first mission
       
StartMission(playerid1); 
    }
    else if(
MissionID == 2)
    {
        
// start second mission
       
StartMission(playerid2); 
    }
    else if(
MissionID == 3)
    {
        
//start third mission
       
StartMission(playerid3); 
    }
    else{ 
printf("ERROR: INVALID MISSION ID"); }

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: 2 Guest(s)