• can disable jump when holding special swep?
    8 replies, posted
users play non-rp gun fight like Spacebar + ctrl + ctrl sorry i suck engilsh
Easy way would be to set the jump power to zero Player
how to jump power zero when user grab a gun
Is this for a game mode you're making or an existing one you're modding? If you're making a game mode then use what I referenced on the wiki in your non-rp gun fight function.
this darkrp
You want to disable jumping in DarkRP when people have guns? Why?
exactly equipment
You'll have to make a manual table of all guns you want jump disabled on, but here's the core of your problem: local tAllowedGuns = { weapon_smg1 = true, weapon_ar2 = true, weapon_pistol = true, -- etc. } hook.Add("StartCommand", "NoJumpGuns", function(pPlayer, cmd) local pWeapon = pPlayer:GetActiveWeapon() if (pWeapon:IsValid() and tAllowedGuns[pWeapon:GetClass()] == true) then cmd:RemoveKey(IN_JUMP) end end)
thx a lot
Sorry, you need to Log In to post a reply to this thread.