22.05.2015, 09:46
I've been trying for the past 8 hours wondering how i can get mission checkpoints working with incognitos streamer. I gave it a few cracks and after failing heaps of times using 3 different methods that i concocted, i decided to try find some help on the forums.
My ideal mission is a pizza delivery mission where a player starts it by using /pizza while on a Pizza Boy.
Then the server chooses 1 out of 10 random locations to go deliver pizza to and it creates a checkpoint there.
Then when the player enters that checkpoint, it adds +1 to a variable and also disables that checkpoint from re-entering the random pool(can't be the same checkpoint twice).
Once a player delivers 5 pizzas (variable = 5) the player gets rewarded money for his efforts and the mission ends.
Checkpoints i've already created (the reason the distance is set to 10000 is so that the checkpoint can be seen from anywhere on the map).
could anyone help me with a little example of some sort? it's been hassling me for so long, haven't been able to get point to point missions to work at all.
My ideal mission is a pizza delivery mission where a player starts it by using /pizza while on a Pizza Boy.
Then the server chooses 1 out of 10 random locations to go deliver pizza to and it creates a checkpoint there.
Then when the player enters that checkpoint, it adds +1 to a variable and also disables that checkpoint from re-entering the random pool(can't be the same checkpoint twice).
Once a player delivers 5 pizzas (variable = 5) the player gets rewarded money for his efforts and the mission ends.
Checkpoints i've already created (the reason the distance is set to 10000 is so that the checkpoint can be seen from anywhere on the map).
PHP Code:
// PIZZA MISSION
Checkpoint[183] = CreateDynamicCP(2326.3721,-1795.8042,13.1429, 2, -1, 0, -1, 10000); //Pizza 1//
Checkpoint[184] = CreateDynamicCP(2385.5088,-1346.9873,24.0006, 2, -1, 0, -1, 10000); //Pizza 2//
Checkpoint[185] = CreateDynamicCP(2284.9150,-1053.8678,48.7215, 2, -1, 0, -1, 10000); //Pizza 3//
Checkpoint[186] = CreateDynamicCP(1892.4847,-1120.8831,24.9825, 2, -1, 0, -1, 10000); //Pizza 4//
Checkpoint[187] = CreateDynamicCP(2746.5930,-1206.0051,66.8144, 2, -1, 0, -1, 10000); //Pizza 5//
Checkpoint[188] = CreateDynamicCP(2804.7375,-1963.1422,13.1466, 2, -1, 0, -1, 10000); //Pizza 6//
Checkpoint[189] = CreateDynamicCP(2507.0293,-2016.8033,13.1440, 2, -1, 0, -1, 10000); //Pizza 7//
Checkpoint[190] = CreateDynamicCP(1730.6172,-2127.7078,13.1422, 2, -1, 0, -1, 10000); //Pizza 8//
Checkpoint[191] = CreateDynamicCP(1973.9854,-1673.2322,15.5625, 2, -1, 0, -1, 10000); //Pizza 9//
Checkpoint[192] = CreateDynamicCP(2452.1389,-1645.9849,13.0623, 2, -1, 0, -1, 10000); //Pizza 10//