24.12.2009, 10:36
Hello,
I made a random checkpoints,and now I do not know how to do OnPlayerEnterCheckpoint for them.
I used:
In command:
I want to when a player comes to the checkpoint to get the message example "You have successfully performed the mission"
Please someone help,thanks
I made a random checkpoints,and now I do not know how to do OnPlayerEnterCheckpoint for them.
I used:
Код:
new Float:checkpoints[][] = { {-22.2549,-55.6575,1003.5469,2.0}, {295.7192,-80.4445,1001.5156,5.0}, {-1957.5327,300.2131,35.4688,2.0} };
Код:
new rand = random(sizeof(checkpoints)); SetPlayerCheckpoint(playerid,checkpoints[rand][0],checkpoints[rand][1],checkpoints[rand][2],checkpoints[rand][3]);
Please someone help,thanks