Эксперт
- Статус
- Оффлайн
- Регистрация
- 1 Июл 2017
- Сообщения
- 1,744
- Реакции
- 1,503
Код:
void HeadShotted(IGameEvent* event)
{
if (!strcmp(event->GetName(), "player_death"))
{
if (Interfaces::Engine()->GetPlayerForUserID(event->GetInt("attacker")) == Interfaces::Engine()->GetLocalPlayer())
{
bool headshot = event->GetBool("headshot");
if (!headshot)
{
event->SetBool("headshot", true);
}
}
}
}
Вызываем в евентах
