[HELP] Dynamic Spawn
#1

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...
Reply
#2

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.
Reply
#3

You want some /savespawn cmd or?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)