Jump to content

who caused car explode


dzek (varez)

Recommended Posts

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 :P

Link to comment

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...