Blockland Forums > Help
Random Inventory?
(1/3) > >>
Sami2ss:
Is there anyway to make it so when a person spawns they have a certain inventory of weapons based on a preselected list of weapons?

Example: List of weapons: M16, AK47, Glock, Desert Eagle

Person can get M16 and glock, or M16 and deagle
or they can get ak47 with glock or deagle
TwenteFreak:
Pretty sure I've seen something like this on a DM server.
Sami2ss:

--- Quote from: TwenteFreak on August 20, 2011, 05:40:01 AM ---Pretty sure I've seen something like this on a DM server.

--- End quote ---

drendran's had something sort of like this.
Sami2ss:
bump
Headcrab Zombie:
I made an add-on for this a while ago. Since it was made for my own server and not intended to be released, the weapons list is hard coded in the script, but its not hard to change.
Just open server.cs and change the lines at top to match the itemName of the weapons you want. In order to get the item names, you can either open the script file for the weapon you're looking for and ctrl-f search for "ItemData' or start a server, equip the weapon, and in console type
"echo(findclientbyname("your name").player.getMountedImage(0).item);"
You can add or remove lines if you need more/less, but you need at least two unique weapons listed or the game will crash
Download



It might be doable with VCE but I just did it in a way I already know
Navigation
Message Index
Next page

Go to full version