• How to make it so only I can pick up the weapon?
    13 replies, posted
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.
[QUOTE=Squerl101;37517990]What spawn code? Doesn't help me.[/QUOTE] 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.
[QUOTE=YourFriendJoe;37518059]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?[/QUOTE] Not helpful. But funny as fuck.
And no I am not spawning it with a code, I've never heard of that before.
[QUOTE=Squerl101;37518081]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.[/QUOTE] Well, Have you tried actually [I]LEARNING[/I] Lua? I did C++ instead. Fallout. haha
No, I have not. I don't have the time for that.
[QUOTE=Squerl101;37518100]No, I have not. I don't have the time for that.[/QUOTE] Then don't try to make lua related things [editline]3rd September 2012[/editline] [QUOTE=Squerl101;37518081]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.[/QUOTE] 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.
[QUOTE=YourFriendJoe;37518115]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.[/QUOTE] 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. [lua] function RestrainPickup(ply, wep) if wep:GetClass() == "PUT THE WEAPONS CLASS HERE" then if ply:SteamID() == "PUT YOUR STEAM ID HERE" then return true else return false end end end hook.Add("PlayerCanPickupWeapon","OnlyICanPickUp",RestrainPickup) [/lua]
[QUOTE=Squerl101;37518100]No, I have not. I don't have the time for that.[/QUOTE] He's too busy killing the two visitors a week on his server with his admin gun.
Sorry, you need to Log In to post a reply to this thread.