Actimel Posted May 24, 2017 Posted May 24, 2017 Hi guys i have a problem by making script weapon sounds by the name not by the id because few weapons using same id and it is a different weapons and when i do by id sounds it plays on other weapons also
AHMED MOSTAFA Posted May 24, 2017 Posted May 24, 2017 9 hours ago, Actimel said: Hi guys i have a problem by making script weapon sounds by the name not by the id because few weapons using same id and it is a different weapons and when i do by id sounds it plays on other weapons also did you want to get the weapon from name ? April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
Actimel Posted May 24, 2017 Author Posted May 24, 2017 Just now, Killer Project said: did you want to get the weapon from name ? yes because i want put sound for example AK 47 has ID 30 and other weapon like aku has also id 30 and when i put sounds on id it plays on these 2 weapons because they have same id
AHMED MOSTAFA Posted May 24, 2017 Posted May 24, 2017 (edited) 9 hours ago, Actimel said: yes because i want put sound for example AK 47 has ID 30 and other weapon like aku has also id 30 and when i put sounds on id it plays on these 2 weapons because they have same id the weapon has one ID !!https://wiki.multitheftauto.com/wiki/Weapons but if you want to get the weapon from name u can use getWeaponNameFromID -- ex if getWeaponNameFromID ( 30 ) == "ak-47" then playSound ( ... ) -- or playSound3D elseif getWeaponNameFromID ( 31 ) == "m4" then playSound ( ... ) -- or playSound3D end Edited May 24, 2017 by Killer Project edit weapon name April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
Actimel Posted May 24, 2017 Author Posted May 24, 2017 2 minutes ago, Killer Project said: the weapon has one ID !!https://wiki.multitheftauto.com/wiki/Weapons but if you want to get the weapon from name u can use getWeaponNameFromID -- ex if getWeaponNameFromID ( 30 ) == "AK-47" then playSound ( ... ) -- or playSound3D end playSound ( soundname? ) -- or playSound3D
AHMED MOSTAFA Posted May 24, 2017 Posted May 24, 2017 9 hours ago, Actimel said: playSound ( soundname? ) -- or playSound3D yes ex ak47.mp3 April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
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