Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Вопрос Как отследить имя?

player_hurt
Name:player_hurt
Structure:
shortuseriduser ID of who was hurt
shortattackeruser ID of who attacked
bytehealthremaining health points
bytearmorremaining armor points
stringweaponweapon name attacker used, if not the world
shortdmg_healthdamage done to health
bytedmg_armordamage done to armor
bytehitgrouphitgroup that was damaged
прикручивай функу к callback player_hurt в самой функе делаешь проверку на attacker != Localplayer return после гетай userid. Profit$
 
player_hurt
Name:player_hurt
Structure:
shortuseriduser ID of who was hurt
shortattackeruser ID of who attacked
bytehealthremaining health points
bytearmorremaining armor points
stringweaponweapon name attacker used, if not the world
shortdmg_healthdamage done to health
bytedmg_armordamage done to armor
bytehitgrouphitgroup that was damaged
прикручивай функу к callback player_hurt в самой функе делаешь проверку на attacker != Localplayer return после гетай userid. Profit$
И как мне hurt в стринг перевести?
 
Назад
Сверху Снизу