CowTurbo Posted March 5, 2011 Share 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 ? Link to comment
Dre-+- Posted March 5, 2011 Share Posted March 5, 2011 function onShoot ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ( "addOneMore",getLocalPlayer(), weapon ) end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), onShoot) Link to comment
CowTurbo Posted March 5, 2011 Author Share Posted March 5, 2011 ahh, im so stupid, lets see does it work too 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