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 ? http://mrteamgaming.eu
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) Sorry for my bad english(
CowTurbo Posted March 5, 2011 Author Posted March 5, 2011 ahh, im so stupid, lets see does it work too http://mrteamgaming.eu
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