Okay so i'm new to starting gmod servers and i recently bought armor suits which gives you armor health and jump boost and run speed and when you equip it there's no way to drop it so i want to add a command and i have the lua code but i don't know how to create the command so basically
I want to use this command /dropsuit
and i think the lua code is:
OnRemove = function( ply ) // what happens when the suit is removed
ply:SetArmor( 0 )
ply:SetHealth( 100 )
ply:SetJumpPower( 200 )
if that's it
Here's what I've done: Ubuntu Pastebin
Tried it on my server, and it works fine. I hope this helps you
Sorry, you need to Log In to post a reply to this thread.