PaLaS0 Posted June 9, 2014 Posted June 9, 2014 So Hello guys, I want to make gun sounds on my server, so I have found one script from the internet which looks like this addEventHandler("onClientPlayerWeaponFire", getRootElement(), function ( weapon, ammo, ammoInClip ) local x,y,z = getElementPosition(source) if weapon == 30 then local sound = playSound3D("Ak.wav", x,y,z) setSoundMaxDistance(sound,75) end end ) so ak for me worked but I have a problem, I cant do m4 because it has 30 bullets too, sniper doenst have magazines bullets can go over 9999 please help me, script works for me but some guns like snipers dont
Cadell Posted June 9, 2014 Posted June 9, 2014 weapon == 30 is not bullet that is weapon id u can find all id from wiki mta and 31 is id of m4 Script Trading Status Successful Trading : 26 Scam : 0 On Sale : Banking System SQL Based On Sale : Housing System MySQL Based Download and Support my new script on Community : http://community.mtasa.com/index.php?p=resources&s=details&id=11686 SQL Based Housing
Max+ Posted June 9, 2014 Posted June 9, 2014 if you want it to work for other Guns , use playSound - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
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