Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CAimbot::OnEvents(IGameEvent* pEvent)
- {
- if (!strcmp(pEvent->GetName(), "player_death"))
- {
- if (Interfaces::Engine()->GetPlayerForUserID(pEvent->GetInt("attacker")) == Interfaces::Engine()->GetLocalPlayer())
- {
- if (Settings::Aimbot::aim_KillDelayTime == 0)
- {
- Settings::Misc::KillDelayBool2 = false;
- }
- else
- {
- Settings::Misc::KillDelayVar = Interfaces::GlobalVars()->curtime + Settings::Aimbot::aim_KillDelayTime;
- }
- }
- }
- if (!strcmp(pEvent->GetName(), "game_newmap"))
- {
- Settings::Misc::KillDelayBool2 = false;
- Settings::Aimbot::aim_KillDelayTime = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement