How to make it so only I can pick up the weapon?

Hey guys, I just got a server, made my own admin weapon (it just shoots really fast), and tested it out. Everything works. I want it so that ONLY I can use my admin gun. If another admin tries using it, It would say fuck no or something. Thanks for the help!

don’t tell other people the spawn code

or hire no admins

What spawn code? Doesn’t help me.

you are spawning the weapon with a code, right?

Wow I can already tell that you must be 12 or something.

You have a gun that shoots really fast and you want to limit it to yourself so you can kill everybody right?

Actually, you are wrong, you aren’t here to help, so I really don’t care.

I own the server. I can do what the hell I want.

Not helpful. But funny as fuck.

And no I am not spawning it with a code, I’ve never heard of that before.

Well, Have you tried actually LEARNING Lua?

I did C++ instead. Fallout. haha

No, I have not. I don’t have the time for that.

Then don’t try to make lua related things

[editline]3rd September 2012[/editline]

You’re right, it’s my copy of gmod, and I don’t have to join your server.

In fact, I’ll make sure to spread the word that you’re running corrupt servers, see you on the blacklist.

hello my honey hello my darling hello my blacklist gallllll

Here you go. Just fill in those two spots and that should do it. BTW this is server side code so make sure you put it in an appropriate location.

function RestrainPickup(ply, wep)
if wep:GetClass() == “PUT THE WEAPONS CLASS HERE” then
if ply:SteamID() == “PUT YOUR STEAM ID HERE” then
return true
return false

He’s too busy killing the two visitors a week on his server with his admin gun.