SA-MP Forums Archive
[HELP] Dynamic Spawn - 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: [HELP] Dynamic Spawn (/showthread.php?tid=673823)



[HELP] Dynamic Spawn - RogerX - 05.04.2020

Hello ... can someone help me modify this system by making each player choose their own spawn separately?
( https://sampforum.blast.hk/showthread.php?tid=401454 )

I put this system on my GM, and the spawn that a player chooses, becomes everyone's spawn...


Re: [HELP] Dynamic Spawn - Adamoneoone - 05.04.2020

If I’m not mistaken, this system sets a unique spawn, and what you are trying to achieve is a unique spawn per player. You will need to heavily edit the script, for instance new D_Info[DynamicSpawn]; would become new D_Info[MAX_PLAYERS][DynamicSpawn]; and you’d have to transform every D_Info into D_Info[playerid]
I think you’d be better off starting from scratch using sqlite / mysql (i strongly advise you not to go the ini way) and using /savepos command would set a per player spawn, the location being saved in the databse.
Just get back the values from the databse when a player connects, and set his position to those values when he spawns.


Re: [HELP] Dynamic Spawn - CheckThisOut - 06.04.2020

You want some /savespawn cmd or?