SA-MP Forums Archive
Custom car spawnpack - 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: Custom car spawnpack (/showthread.php?tid=653035)



Custom car spawnpack - ServerFiles - 24.04.2018

How can I make custom car spawnpack? like when I type, /spawnpack [carid (not model id] and it will added it to spawnpack, so, when you type /car spawnpack, it will spawned all selected vehicle that you choose from spawnpack..


Re: Custom car spawnpack - ItsRobinson - 24.04.2018

So you want it to store all the ID's you enter with a command and then spawn all the ID's you've stored.


Re: Custom car spawnpack - ServerFiles - 24.04.2018

Can you give me example code?


Re: Custom car spawnpack - ServerFiles - 24.04.2018

anyone?


Re: Custom car spawnpack - UFF - 25.04.2018

You can store the player's vehicle in your database like

Reg_ID PlayerName Veh1 Veh2 and so on..

with the command /spawnpack

And so, when a player use the command /car , a dialog with a list of his spawn pack vehicles should appear. He can select which vehicle he wants from that!

If I'm right!


Re: Custom car spawnpack - ServerFiles - 27.04.2018

can you give me code?


Re: Custom car spawnpack - Zeth - 28.04.2018

What do you mean by CarID , it works only with its provided vehicle ids(400-611). You can make an array and then insert the element by typing a command, and you have no idea how to handle arrays, then you may look for a tutorial.

TIP: You can use sscanf kustom params( k<vehicle>) to return the vehicle id using its name.


Re: Custom car spawnpack - Tass007 - 28.04.2018

Quote:
Originally Posted by ServerFiles
Посмотреть сообщение
can you give me code?
If you're wanting someone to create this specific script for you; you're in the wrong section. This section is for a place to help people whom already have code and need help. Not for people who are wanting someone else to create a script for them.

Requesting a scripter's help you need to go to https://sampforum.blast.hk/showthread.php?tid=447813


Re: Custom car spawnpack - ServerFiles - 29.04.2018

Quote:
Originally Posted by Tass007
Посмотреть сообщение
If you're wanting someone to create this specific script for you; you're in the wrong section. This section is for a place to help people whom already have code and need help. Not for people who are wanting someone else to create a script for them.

Requesting a scripter's help you need to go to https://sampforum.blast.hk/showthread.php?tid=447813
Im not asking people to create the script, I just asked for example code so I can make it on my own.