SA-MP Forums Archive
Moving Locker for Factions - 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: Moving Locker for Factions (/showthread.php?tid=502405)



Moving Locker for Factions - SamBeast - 23.03.2014

Hello SA-MP Community.

So I got a server with a controllable Aircraft Carrier (You can actually control / move it)
And since it belongs to the Navy & Airforce Division, they usually stay there, and Roleplay on it, but they always have to go to the Main Faction HQ (Area 69) To get the gear and weapons, How can I add a Dynamic Locker, that will change as the Aircraft Carrier changes? (moves with the Carrier).

Thank you for Attention.


Re: Moving Locker for Factions - Zeppo - 23.03.2014

Look for the command they have to execute to bring up the dialog(for example: /locker), check the IsPlayerInRangeOfPoint and change it to a position on the Aircraft Carrier.