Jump to content

Question: onClientPlayerWasted


Arisu

Recommended Posts

Can you say what values in killer when player dies by himself (fall or his grenade) ?

Well, server-side event passes false if the player died himself. I guess it's the same in this client-side event.

Link to comment

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.

Link to comment
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

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