Jump to content

who caused car explode


dzek (varez)

Recommended Posts

Posted

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) ?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
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

Posted

bad thing is that i want to destroy vehs with projectiles ;)

ok,its not necessary

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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