CowTurbo Posted March 5, 2011 Posted March 5, 2011 function onShoot ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ( "addOneMore",getLocalPlayer(), weapon ) end addEventHandler("onClientPlayerWeaponFire", getRootElement(), onShoot) this will trigger for all players who see someone shooting. How to make it that when player shoots then it will be triggered only for him ?
Dre-+- Posted March 5, 2011 Posted March 5, 2011 function onShoot ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ( "addOneMore",getLocalPlayer(), weapon ) end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), onShoot)
CowTurbo Posted March 5, 2011 Author Posted March 5, 2011 ahh, im so stupid, lets see does it work too
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