sumariello Posted July 11, 2012 Share Posted July 11, 2012 how can I stop heavy weapons to the player? type minigun rpg and more ... and also for military helicopters Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 you can use toggleControl and onClientPlayerWeaponSwitch you will find what you searching for here i recommend you Link to comment
sumariello Posted July 11, 2012 Author Share Posted July 11, 2012 where it is inserted? Function disableMinigunOnSwitch (prevSlot, NewSlots) if getPedWeapon (getLocalPlayer (), NewSlots) == 38 then - if the weapon is turned on minigun toggleControl ("aim_weapon", false) - disable the button order else - if not the minigun toggleControl ("aim_weapon", true) - renable button order end end addEventHandler ("onClientPlayerWeaponSwitch", getRootElement (), disableMinigunOnSwitch) Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 where it is inserted? Function disableMinigunOnSwitch (prevSlot, NewSlots)if getPedWeapon (getLocalPlayer (), NewSlots) == 38 then - if the weapon is turned on minigun toggleControl ("aim_weapon", false) - disable the button order else - if not the minigun toggleControl ("aim_weapon", true) - renable button order end end addEventHandler ("onClientPlayerWeaponSwitch", getRootElement (), disableMinigunOnSwitch) what you mean ? Link to comment
sumariello Posted July 11, 2012 Author Share Posted July 11, 2012 Where do I put this script Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 create a file and name it what ever you want like client.lua and put this script into it don't forget meta.xml then create zip file and put meta.xml and client.lua into it meta file must be like this <meta> <info author="yourname" version="1" type="script" /> <script src="Client.lua" type="client" /> </meta> then run Mtaserver.exe that's all good luck but if you're new in scripting you better read this https://wiki.multitheftauto.com/wiki/Scr ... troduction i recommend you again Link to comment
sumariello Posted July 11, 2012 Author Share Posted July 11, 2012 you can help me do that please? Link to comment
Tete omar Posted July 11, 2012 Share Posted July 11, 2012 just read this .. https://wiki.multitheftauto.com/wiki/Scr ... troduction it's not needed for help read and it would be easy for you to create scripts over and over Link to comment
sumariello Posted July 11, 2012 Author Share Posted July 11, 2012 This page does not exist Link to comment
Vision Posted July 11, 2012 Share Posted July 11, 2012 Here: https://wiki.multitheftauto.com/wiki/Scr ... troduction 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