help me Random Checkpoint
#2

If you have playerinfo / playervalue enum do like

add here
Код:
new rand = random(sizeof(RandomCP));
			SetPlayerCheckpoint(playerid, RandomCP1[rand][0], RandomCP1[rand][1],RandomCP1[rand][2],3.0);
PlayerInfo[playerid][checkpointone]=1;
then do

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	//randomcheckpoints
	// if checkpoints is RandomCP1 [rand] [0]
	if( PlayerInfo[playerid][checkpointone]==1)
        {
              //code here
              PlayerInfo[playerid][checkpointone]=0;
         }
    return 1;
}
Reply


Messages In This Thread
help me Random Checkpoint - by wilking - 14.05.2017, 07:30
Re: help me Random Checkpoint - by BlueGames - 14.05.2017, 10:22
Re: help me Random Checkpoint - by wilking - 14.05.2017, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)