sumariello Posted July 11, 2012 Posted July 11, 2012 how can I stop heavy weapons to the player? type minigun rpg and more ... and also for military helicopters
Tete omar Posted July 11, 2012 Posted July 11, 2012 you can use toggleControl and onClientPlayerWeaponSwitch you will find what you searching for here i recommend you
sumariello Posted July 11, 2012 Author 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)
Tete omar Posted July 11, 2012 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 ?
Tete omar Posted July 11, 2012 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
Tete omar Posted July 11, 2012 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
Vision Posted July 11, 2012 Posted July 11, 2012 Here: https://wiki.multitheftauto.com/wiki/Scr ... troduction
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