Random command help ! pls.
#8

As a function.
PHP код:
StartMission(playeridMissionID)
{
       
// the id is saved in MissionID

And StartMission(playerid, 2); should actually be:
PHP код:
StartMission(playeridMissionID); 
PHP код:
CMD:mission(playerid)  
{   
if (
IsPlayerInCheckpoint(playerid))  
{  
DisablePlayerCheckpoint(playerid)  
new 
MissionID randomEx(1,3);
StartMission(playeridMissionID);  
}  
else  return  
SendClientMessage(playerid, -1""chat" Go to Military Base to get a mission");  

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