iPrestege Posted March 15, 2013 Share Posted March 15, 2013 Edit the xml file or remove the command from fr_client.lua add "--" before the command . Link to comment
Jaysds1 Posted March 15, 2013 Share Posted March 15, 2013 Try this: function giveWeapon() outputChatBox("Sorry, No weapons are allowed!") return false end Link to comment
GamerDeMTA Posted March 15, 2013 Author Share Posted March 15, 2013 I delete the Weapon Window--? Link to comment
iPrestege Posted March 15, 2013 Share Posted March 15, 2013 No just edit the weapon xml file . Link to comment
GamerDeMTA Posted March 15, 2013 Author Share Posted March 15, 2013 But If I delete the XML players can have weapons by command /give? Link to comment
Castillo Posted March 15, 2013 Share Posted March 15, 2013 Go to "freeroam/fr_server.lua" and search for this: function giveMeWeapon(weapon, amount) if weapon > 50 then return end if table.find(getOption('weapons.disallowed'), weapon) then errMsg((getWeaponNameFromID(weapon) or tostring(weapon)) .. 's are not allowed', source) else giveWeapon(source, weapon, amount, true) end end Then replace it with: function giveMeWeapon ( ) errMsg ( "Getting weapons is not not allowed", source ) end Or you can disallow all weapons on the meta.xml. Link to comment
GamerDeMTA Posted March 15, 2013 Author Share Posted March 15, 2013 Thanks Castillo If I do it by meta what i must put in weapons/disallowed? the Weapons ID? Link to comment
Castillo Posted March 15, 2013 Share Posted March 15, 2013 No, actually forget all about that, you can disable weapons by changing this setting: "*weapons/enabled" value="true" /> -- Can players give themselves weapons? --> to: "*weapons/enabled" value="false" /> -- Can players give themselves weapons? --> 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