Custom car spawnpack
#1

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

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

Can you give me example code?
Reply
#4

anyone?
Reply
#5

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!
Reply
#6

can you give me code?
Reply
#7

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

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
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)