THASMOG Posted March 27, 2014 Share Posted March 27, 2014 function weaponSwitch (weapon) if source == getLocalPlayer() then local ammoName,_ = getWeaponAmmoType2 (weapon) if getElementData(getLocalPlayer(),ammoName) > 0 then setElementData(getLocalPlayer(),ammoName,getElementData(getLocalPlayer(),ammoName)-1) end end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), weaponSwitch ) Simply i need to make a script that checks player ammo before fireing. Maybe onClientPlayerWeaponSwitch Why? Becose DayZ has a bug. When u drop mag and reconnect. Then you picup your dropped mag u have almost unlimited ammo (10000+). Link to comment
Moderators IIYAMA Posted March 27, 2014 Moderators Share Posted March 27, 2014 https://forum.multitheftauto.com/viewtopic.php?f=91&t=73326 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