SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/04/2020, 07:30 PM   #1
RogerX
Little Clucker
 
RogerX's Avatar
 
Join Date: Mar 2017
Location: Marte
Posts: 41
Reputation: 6
Post [HELP] Dynamic Spawn

Hello ... can someone help me modify this system by making each player choose their own spawn separately?
( https://forum.sa-mp.com/showthread.php?t=401454 )

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


Mapas






FilterScript's




GameModes
RogerX is offline   Reply With Quote
Old 05/04/2020, 09:40 PM   #2
Adamoneoone
Huge Clucker
 
Join Date: Sep 2014
Posts: 485
Reputation: 37
Default Re: [HELP] Dynamic Spawn

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.
Adamoneoone is offline   Reply With Quote
Old 06/04/2020, 11:10 PM   #3
CheckThisOut
Little Clucker
 
Join Date: Jan 2013
Posts: 7
Reputation: 0
Default Re: [HELP] Dynamic Spawn

You want some /savespawn cmd or?
CheckThisOut is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pawno don't spawn dynamic objects OuDayas Scripting Help 2 18/12/2019 03:13 PM
Registration system and dynamic spawn Dzordzomordzo Scripting Help 0 26/08/2019 08:26 AM
Dynamic spawn MadafakaPro Scripting Help 4 22/12/2012 05:11 PM
My Dynamic Car Spawn System spd_sahil Scripting Help 2 23/10/2012 01:39 PM
[Include] Dynamic Vehicle Spawn Menu Jochemd Includes 10 08/04/2012 10:44 AM


All times are GMT. The time now is 08:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.