player_hurt
Name: | player_hurt |
Structure: |
short | userid | user ID of who was hurt | short | attacker | user ID of who attacked | byte | health | remaining health points | byte | armor | remaining armor points | string | weapon | weapon name attacker used, if not the world | short | dmg_health | damage done to health | byte | dmg_armor | damage done to armor | byte | hitgroup | hitgroup that was damaged |
|
прикручивай функу к callback player_hurt в самой функе делаешь проверку на attacker != Localplayer return после гетай userid. Profit$