Disable weapon change
#1

Hello!

I want to limit the players to hold only one weapon. I want to disable the Q/E keys and mousewheeel to change weapons. There's an easy way to do it?

Thanks!
Reply
#2

Information

You can't disable keys, but what you can do. Is have a variable that holds the current weapon and OnPlayerUpdate you can check if their current weapon is the same as the variable and if not, you can then use SetPlayerArmedWeapon and force it.
Reply
#3

The answer is simple just give them the weapon you want only...If you had many weaps in AddPlayerClass just simply reset the player weapons using ResetPlayerWeapons
and then use GivePlayerWeapon
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)