SA-MP Forums Archive
Dynamic Things.. [How to make] - 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: Dynamic Things.. [How to make] (/showthread.php?tid=295745)



Dynamic Things.. [How to make] - Azzeto - 07.11.2011

How can I make a dynamic system? Like weapon lockers, where I could just go ingame and do /createlocker [1-10]

I'v searched for tutorials but I couldn't find none, I dont need it created for me, just show me how I could create it.


Re: Dynamic Things.. [How to make] - Giovanni - 07.11.2011

Well, you could create weapon lockers on the same way you would create for example businesses in a Roleplay Script.


Make an enum, where every needed variable is included (Pos x, y, z / Owner etc.) and store those lockers in Text Files. Then save them with stocks / publics when there are changes on them done (not really needed though) and load them at OneGameModeInit.

That's how I would do it.


Re: Dynamic Things.. [How to make] - KosmasRego - 07.11.2011

Giovanni you really have huge expirience rep++