boro Posted November 25, 2012 Posted November 25, 2012 Hi all i try make script for frozen weapon shot but i don't know how to make it , please help I try this, but not work setWeaponFrozen(source, true) I'll help When I Can.
Kenix Posted November 25, 2012 Posted November 25, 2012 This function doesn't exists. I don't understand what are you trying to do. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
myonlake Posted November 25, 2012 Posted November 25, 2012 setWeaponFrozen is not a function name If I helped you, please click the like button on the right Thanks!
1MenuX1 Posted November 25, 2012 Posted November 25, 2012 How to set weapon frozen ? Its too set Weapon not shooting ? If is , max. setWeaponAmmo ..
boro Posted November 25, 2012 Author Posted November 25, 2012 No i want make stop gun shooting but no remove gun only stop shot I'll help When I Can.
abu5lf Posted November 25, 2012 Posted November 25, 2012 https://wiki.multitheftauto.com/wiki/ToggleControl ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
boro Posted November 25, 2012 Author Posted November 25, 2012 (edited) Is it good ? function disableFireForWeapon ( theWeapon ) if ( getElementModel ( theWeapon ) == 38 ) then toggleControl ( source, fire, false ) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), disableFireForWeapon ) Edited November 25, 2012 by Guest I'll help When I Can.
Castillo Posted November 25, 2012 Posted November 25, 2012 There is no such event: "onPlayerWeaponUse". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
50p Posted November 25, 2012 Posted November 25, 2012 https://wiki.multitheftauto.com/wiki/OnP ... aponSwitch even the example on the page shows you how to disable weapons. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
boro Posted November 25, 2012 Author Posted November 25, 2012 and now ? function disableFireForWeapon ( theWeapon ) if ( getElementModel ( theWeapon ) == 38 ) then toggleControl ( source, fire, false ) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), disableFireForWeapon ) I'll help When I Can.
Castillo Posted November 25, 2012 Posted November 25, 2012 function disableFireForWeapon ( _, theWeapon ) if ( theWeapon == 38 ) then toggleControl ( source, "fire", false ) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), disableFireForWeapon ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
boro Posted November 26, 2012 Author Posted November 26, 2012 "..." type="script" author="..." version="..." description="..." /> I'll help When I Can.
TAPL Posted November 26, 2012 Posted November 26, 2012 Use the example in wiki (it will disable M4 and Heat-Seeking and Minigun) You can change the weapons id from the table. https://wiki.multitheftauto.com/wiki/OnPlayerWeaponSwitch
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