SA-MP Forums Archive
nearest checkpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: nearest checkpoint (/showthread.php?tid=600933)



nearest checkpoint - bugmenotlol - 14.02.2016

Plz help me how to get nearest loading point for a mission
For eg.. I have scripted a corrier script it has 3 loading points and 5 unloading points.... all are checkpoints and after finishing a delivery I want to get from th e nearest loading

Can plz help in this issue
Thnx in advance


Re: nearest checkpoint - bugmenotlol - 15.02.2016

bumb
plz help guys
here are the codes Pastebin:


Re: nearest checkpoint - Nero_3D - 15.02.2016

Something like that

http://pastebin.com/uuHS6BVq

You somehow got two modelids in your code (414 and 455), I guessed it should only be 414
Also changed the command to start to KEY_SUBMISSION


Re: nearest checkpoint - bugmenotlol - 15.02.2016

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Something like that

http://pastebin.com/uuHS6BVq

You somehow got two modelids in your code (414 and 455), I guessed it should only be 414
Also changed the command to start to KEY_SUBMISSION
it shows undefined symbol "GetPlayerDistanceFromPoint"
plz help


Re: nearest checkpoint - J0sh... - 15.02.2016

Update your includes then.

"This function was added in SA-MP 0.3c R3 and will not work in earlier versions!"
You must have a very old a_samp file.


Re: nearest checkpoint - bugmenotlol - 15.02.2016

Quote:
Originally Posted by Jamester
Посмотреть сообщение
Update your includes then.

"This function was added in SA-MP 0.3c R3 and will not work in earlier versions!"
You must have a very old a_samp file.
could u plz give me a link for the new one ?


Re: nearest checkpoint - J0sh... - 15.02.2016

Quote:
Originally Posted by bugmenotlol
Посмотреть сообщение
could u plz give me a link for the new one ?
Download the 0.3.7 R2-1 Server package.


Re: nearest checkpoint - bugmenotlol - 15.02.2016

and 1 more thing @ Nero_3d
can u stop constent work ??

P.s Rep to both


Re: nearest checkpoint - Nero_3D - 15.02.2016

Quote:
Originally Posted by bugmenotlol
Посмотреть сообщение
and 1 more thing @ Nero_3d
can u stop constent work ??

P.s Rep to both
If you exit the vehicle the mission is aborted if you meant that


Re: nearest checkpoint - bugmenotlol - 15.02.2016

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
If you exit the vehicle the mission is aborted if you meant that
i had made it to command instead of submission
here is the new code ;


after unloading it gives new cp before hitting /work command
i am asking how to remove it

and can u make a /stopwork command instead of getting out of vehicle plz ?