Jump to content

Notify when someone faints someone else


Dekonpriv

Recommended Posts

I have a pass out script when life gets to 30%. I would like to know how do I make it so that if someone knocks down another player, the information appears (who knocked out who with what object).
Example: João knocked Jonas out with an Uzi.

faint = when someone drops to 30% health
Link to comment
On 3/26/2023 at 4:07 PM, Dekonpriv said:

I have a pass out script when life gets to 30%. I would like to know how do I make it so that if someone knocks down another player, the information appears (who knocked out who with what object).
Example: João knocked Jonas out with an Uzi.

faint = when someone drops to 30% health

usually in fainting mods they use the onClientPlayerDamage to check for each damage the player has if he has less than a certain life, if he has less than a certain life he faints, since in the event there is the attacker argument that is the aggressor, you could use a getPlayerName(attacker) that if you are really using the onClientPlayerDamage event as I imagine

 

text translated by google translator*

Edited by SciptNovato
Link to comment
On 28/03/2023 at 09:19, SciptNovato said:

usually in fainting mods they use the onClientPlayerDamage to check for each damage the player has if he has less than a certain life, if he has less than a certain life he faints, since in the event there is the attacker argument that is the aggressor, you could use a getPlayerName(attacker) that if you are really using the onClientPlayerDamage event as I imagine

 

text translated by google translator*

if (getElementHealth(target) > 30) then
 ...
end

 

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