Jump to content

Bullets things...


WiBox

Recommended Posts

Posted

@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

Posted (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 by SSKE

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...