Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. void CAimbot::OnEvents(IGameEvent* pEvent)
  2. {
  3.     if (!strcmp(pEvent->GetName(), "player_death"))
  4.     {
  5.         if (Interfaces::Engine()->GetPlayerForUserID(pEvent->GetInt("attacker")) == Interfaces::Engine()->GetLocalPlayer())
  6.         {
  7.             if (Settings::Aimbot::aim_KillDelayTime == 0)
  8.             {
  9.                 Settings::Misc::KillDelayBool2 = false;
  10.             }
  11.             else
  12.             {
  13.                 Settings::Misc::KillDelayVar = Interfaces::GlobalVars()->curtime + Settings::Aimbot::aim_KillDelayTime;
  14.             }
  15.         }
  16.     }
  17.     if (!strcmp(pEvent->GetName(), "game_newmap"))
  18.     {
  19.         Settings::Misc::KillDelayBool2 = false;
  20.         Settings::Aimbot::aim_KillDelayTime = 0;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement