14.05.2017, 15:30
Quote:
|
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; Код:
public OnPlayerEnterCheckpoint(playerid)
{
//randomcheckpoints
// if checkpoints is RandomCP1 [rand] [0]
if( PlayerInfo[playerid][checkpointone]==1)
{
//code here
PlayerInfo[playerid][checkpointone]=0;
}
return 1;
}
|


