Author Topic: Random Inventory?  (Read 640 times)

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

Pretty sure I've seen something like this on a DM server.

Pretty sure I've seen something like this on a DM server.

drendran's had something sort of like this.


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

No edit in help : It also has an RTB pref to turn it on or off

wow, that's awesome. thanks for sharing. :D

also, does it have an individual randomizing for each slot? like, for slot 1, only certain weapons can be in it, same for slot 2, for example, it can only be a random sidearm.

The craftsman may have somethign like this but im not sure.

Seeing as no ones said this yet, you could also do it with VCE.

Although Head's is better, seeing as it's more straightforward.

Seeing as no ones said this yet, you could also do it with VCE.

Although Head's is better, seeing as it's more straightforward.

i'm sure you can but i have no idea how to use vce