-.Paradox.- Posted December 2, 2013 Share Posted December 2, 2013 Hello, I have a question, is there a function/element that let the player can own only 5 weapon types? Link to comment
.:HyPeX:. Posted December 3, 2013 Share Posted December 3, 2013 No. Not directly, but you can stop him from having one. Link to comment
-.Paradox.- Posted December 3, 2013 Author Share 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? Link to comment
Tete omar Posted December 3, 2013 Share Posted December 3, 2013 Yes it is, but there is no ready-made functions for this. Link to comment
-.Paradox.- Posted December 3, 2013 Author Share Posted December 3, 2013 How to make it? Link to comment
DiSaMe Posted December 3, 2013 Share 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... Link to comment
-.Paradox.- Posted December 3, 2013 Author Share 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? Link to comment
pa3ck Posted December 3, 2013 Share 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. Link to comment
myonlake Posted December 4, 2013 Share 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. Link to comment
-.Paradox.- Posted December 4, 2013 Author Share Posted December 4, 2013 I don't understand Link to comment
.:HyPeX:. Posted December 7, 2013 Share Posted December 7, 2013 Just read a little arround on the functions https://wiki.multitheftauto.com/wiki/Weapon Link to comment
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