WiBox Posted September 12, 2018 Share Posted September 12, 2018 I tried 4.. 5.. times to do it by my own but I'm still failing.. I want to check if a player has shot 3 shots of shotgun.. Link to comment
JeViCo Posted September 12, 2018 Share Posted September 12, 2018 @SSKE try to use this: addEventHandler("onClientPlayerWeaponFire",getRootElement(),function(weap) if source == localPlayer -- you can remove it if you want if weap == 25 then -- check if the weapon was shotgun -- your stuff end end end) and use set/getElementData to count shots Link to comment
WiBox Posted September 12, 2018 Author Share Posted September 12, 2018 (edited) Thanks, I know that part, but I didn't know how to check if a player has shot using shotgun with getElementData.... Nevermind I found the way using setElementData and getElementData, thanks a lot! Edited September 12, 2018 by SSKE 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