Posts: 270
Threads: 41
Joined: Sep 2013
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,
Posts: 270
Threads: 41
Joined: Sep 2013
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.
Posts: 270
Threads: 41
Joined: Sep 2013
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?
Posts: 270
Threads: 41
Joined: Sep 2013
Thanks everybody, I have done that.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
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.