View Full Version : Spawning Items.

May 05, 2008, 06:23 PM
Hello, I have to say excellent work drunken fool. I just installed this mod onto my new HL2DM to turn it into a build server, by using some of your functions.

I was wondering if you could make a slight modification, or tell me how to do this.

I want to be able to set up trusted members that can spawn every item, this is available by adding them to steam id list.

However I wish to be able to give normal members to spawn only items approved by me or my administrators, I can see two ways of doing this, catching the players (X,Y,Z) coordinates and spawning it in front of them, or you doing it using your way.

The way I am planning on doing it is !spawn <ITEM>, in chat, I can set this up for trusted people, but not for untrusted. So either you can make the modifaction or you could tell me what to catch.

Thanks Dave.

P.S Have we met before?

Drunken F00l
May 06, 2008, 02:30 AM
There is no way to have two lists of spawnable items. Perhaps in a future version of SourceOP the e_spawnprop code will be implemented in Lua. If I implement it in Lua, you will be able to modify the current behavior as you please.

May 06, 2008, 08:12 AM
Well, I had another idea of doing that, if I or you created another plugin, that has a list of items that wasn't allowed unless your steam ID matched on a list.

e_spawnprop <name> <x,y,z> would be nice and change the current e_spawnprop to e_spawn.

The trigger would be !spawn <item> the items above that weren't allowed would relay the message You are not trusted, if your steam ID matched you could spawn said item.

The X,Y,Z coordiantes would be for spawning the item infront of them, as ill be executing it as a console command.