How to disable changing weapons
#1

Hello guys, I want to know how to disable changing weapons i.e weapons can only be changed by setplayerarmedweapon, I have tried some includes but they don't work. Thanks,
Reply
#2

But I want them to have their weapons, just don't allow them to switch them as i want to create a weapon equip system so that players can use only use equiped weapon.
Reply
#3

Quote:
Originally Posted by HitterHitman
Посмотреть сообщение
But I want them to have their weapons, just don't allow them to switch them as i want to create a weapon equip system so that players can use only use equiped weapon.
Uhm,

First disarm them and then give them that weapon which you want them to use.

Or as ****** said.
Reply
#4

Quote:
Originally Posted by Bingo
Посмотреть сообщение
Uhm,

First disarm them and then give them that weapon which you want them to use.

Or as ****** said.
Isn't there any way set their weapon back to previous weapon they have in their hand?
Reply
#5

Quote:
Originally Posted by HitterHitman
Посмотреть сообщение
Isn't there any way set their weapon back to previous weapon they have in their hand?
Never tried though.
Reply
#6

Thanks everybody, I have done that.
Reply
#7

Well there is a way but what ****** said is way simplier.

Anyways you can store the player's weapon in an array and check their weapons. If the current weapon is not the saved one, then use SetPlayerArmedWeapon and set to the old weapon.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)