-.Paradox.- Posted December 2, 2013 Posted December 2, 2013 Hello, I have a question, is there a function/element that let the player can own only 5 weapon types?
.:HyPeX:. Posted December 3, 2013 Posted December 3, 2013 No. Not directly, but you can stop him from having one.
-.Paradox.- Posted December 3, 2013 Author Posted December 3, 2013 @Tete It's possible I saw it in a server, player can have only 5 weapons(knife,pistol,Uzi,m4,sniper) And @.:Hypex:. How?
Tete omar Posted December 3, 2013 Posted December 3, 2013 Yes it is, but there is no ready-made functions for this.
DiSaMe Posted December 3, 2013 Posted December 3, 2013 If you don't want the players to carry more than 5 weapons, don't give them more than 5 weapons, simple...
-.Paradox.- Posted December 3, 2013 Author Posted December 3, 2013 Not that, I mean with weapons slots he can carry 5 types(Melee, handgun, Sub-Machine Guns, Assault rifles and rifles) do you get what I mean?
pa3ck Posted December 3, 2013 Posted December 3, 2013 Well the easiest would be to use setElementData then retreive it with getElementData. When you give him a weapon, you set the element data... There might be some other ways which are more efficient, but you know... this one is easy.
myonlake Posted December 4, 2013 Posted December 4, 2013 Well the easiest would be to use setElementData then retreive it with getElementData. When you give him a weapon, you set the element data... There might be some other ways which are more efficient, but you know... this one is easy. Setting element data for something like this is stupid and inefficient. Just check which slots are in use and don't allow changing if they have five slots in use.
.:HyPeX:. Posted December 7, 2013 Posted December 7, 2013 Just read a little arround on the functions https://wiki.multitheftauto.com/wiki/Weapon
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now