dzek (varez) Posted January 27, 2010 Share Posted January 27, 2010 hi, theres any way to determine which player is responisble for car explode? onVehicleExplode has no arguments if not, will be this in MTA 1.1 (question for somebody who knows news from mta creators team) ? Link to comment
Wojak Posted January 28, 2010 Share Posted January 28, 2010 hi,theres any way to determine which player is responisble for car explode? onVehicleExplode has no arguments if not, will be this in MTA 1.1 (question for somebody who knows news from mta creators team) ? i think it is posible only if player used a gun (impasible for melle and projectiles based weapons) --client onClientPlayerWeaponFire(function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) local name = getPlayerName(source) if getElementType(hitElement) == "Vehicle" then setElementData(hitElement, responisblePlayer, name) end end) --server onVehicleExplode(function() outputChatBox(getElementData(source, responisblePlayer).. " caused car explode") end) 1) i written it in the browser, it may not work at all 2) if it wil work, it will often lie... 3) i want parameters like in onPlayerWasted in onVehicleExplode to Link to comment
dzek (varez) Posted January 28, 2010 Author Share Posted January 28, 2010 bad thing is that i want to destroy vehs with projectiles ok,its not necessary 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