11.11.2015, 03:43
Hi
I am going to update the missions system on my server again, hoping to create a mission builder.
A mission builder itself is wery simple, but i want it to show only missions from the nearby (a distance from Fallen tree to montgomery etc etc).
I think the best bet is to use GetPlayerDistanceFromPoint and use something like this:
What do you think? Is there something i should/could do to make this easier or something?
Second thing is, how to save the mission id's for further randoming (since i random the missions from the nearby and select 3 of them using random)?
Thanks for advices in advance!
I am going to update the missions system on my server again, hoping to create a mission builder.
A mission builder itself is wery simple, but i want it to show only missions from the nearby (a distance from Fallen tree to montgomery etc etc).
I think the best bet is to use GetPlayerDistanceFromPoint and use something like this:
pawn Код:
if(GetPlayerDistanceFromPoint(playerid, 237.9, 115.6, 1010.2) <= 1000.0)
{
}
Second thing is, how to save the mission id's for further randoming (since i random the missions from the nearby and select 3 of them using random)?
Thanks for advices in advance!