Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 10:37:56 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Console command to spawn weapons?
Pages: [1]
Author Topic: Console command to spawn weapons?  (Read 3769 times)
laser2150
Poster

Posts: 30


« on: May 03, 2010, 09:50:41 AM »

I wanted to test a weapon I was making, but Im not sure what command I would use to spawn it.

I want it to be admin only, its not like a super op gun, but just a clone of another weapon with a different model and such.

Im not perfect with garrys mod yet, and our server has sourcemod, I saw in the .lua there was a SWEP.Adminspawnable and I kept it at true.

my only question is how does that translate ingame? is it a command or do I need something else?
AndyTheGeeky
Build Tester
*
Posts: 3026


Wannabe Zoidberg


« Reply #1 on: May 03, 2010, 10:35:12 AM »

Most likely you'd need ULX admin rights; I don't think GMod fully supports SourceMod (or the other way around).

Signature Pending...
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #2 on: May 03, 2010, 10:44:50 AM »

The adminspawnable stuff is just for when you try to spawn it in sandbox mode, not important.

Use "give" (like "give weapon_ttt_knife") to give yourself a gun. Use "ent_create" (again, "ent_create weapon_ttt_knife") to create the weapon at your crosshair. Both are cheat commands, of course, so you need to enable sv_cheats.
AndyTheGeeky
Build Tester
*
Posts: 3026


Wannabe Zoidberg


« Reply #3 on: May 03, 2010, 03:41:10 PM »

Or he could always sm_give, ulx_give, or some other admin command.

Signature Pending...
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Console command to spawn weapons? « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.008 seconds with 17 queries.