Start a mission near a player
#1

How can i start a players mission from the nearest load point to him

pawn Код:
x = ArticTrailer[MisRand][LoadX];
            y = ArticTrailer[MisRand][LoadY];
            z = ArticTrailer[MisRand][L[REMOVEDoadZ];
I really dont know where to start :S Any help would be appreciated.
Reply
#2

Take a look here

Btw e.g

pawn Код:
// under a callback or somewhere to call it
    if(IsPlayerInRangeOfPoint(playerid, 5.0, x,y,z)) // playerid - player which calls it, 5.0 - range point to activate in your case the mission, x,y,z floats saved as variable from you which gives the coordinates to execute the function.
    {
        //code
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)