Jump to content

Question: onClientPlayerWasted


Arisu

Recommended Posts

Posted

I tried to to rocket myself and check with this code

function deathHandler (killer, weapon, bodypart)
outputChatBox(getPlayerName(killer))
end

and this gives me my name. So does this mean that if player kills himself, source == killer? (this is clientside)

One more problem. I tried to use event onPickupSpawned (copied example from wiki), and it didn't work at all for me.

banner_88x31.png

430x73_FFFFFF_FF9900_000000_000000.png

Posted
I tried to to rocket myself and check with this code
function deathHandler (killer, weapon, bodypart)
outputChatBox(getPlayerName(killer))
end

and this gives me my name. So does this mean that if player kills himself, source == killer? (this is clientside)

One more problem. I tried to use event onPickupSpawned (copied example from wiki), and it didn't work at all for me.

No the Source isnt the Killer, 2 different Elements (okay when you kill yourself the elements should be the same).

Paste your onPickupSpawned Event cause i only know OnPickupSpawn

https://wiki.multitheftauto.com/wiki/OnPickupSpawn

Stats_Signature.php?name=Jason_Gregory
Contact me if you need a Website / Signature ↑ / Mapuploadsystem

(HTML5, JS, PHP, ASP.NET, MySQL / Sybase)

Posted

post your code

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
root = getRootElement ()
 
addEventHandler ("onPickupSpawn", root,
function ()
print ("onPickupSpawned trigger")
end
)

banner_88x31.png

430x73_FFFFFF_FF9900_000000_000000.png

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