Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local SetValue = gui.SetValue;
  2.  
  3. local LEGIT_AIMBOT_REF = gui.Reference( "LEGIT", "Aimbot" );
  4.  
  5. local AWAutoZeus = gui.Checkbox( LEGIT_AIMBOT_REF, "lua_lbot_autozeus", "Auto Zeus", 0 );
  6.  
  7. local function AutoZeus( Event )
  8.  
  9. if gui.GetValue("lbot_active") == true then
  10.  
  11. if AWAutoZeus:GetValue() then
  12.  
  13. if ( Event:GetName() ~= "item_equip" ) then
  14. return;
  15. end
  16.  
  17. local ME = client.GetLocalPlayerIndex();
  18. local INT_UID = Event:GetInt( "userid" );
  19. local PlayerIndex = client.GetPlayerIndexByUserID( INT_UID );
  20.  
  21. local WepType = Event:GetInt( "weptype" );
  22. local Item = Event:GetString( "item" );
  23.  
  24. if ( ME == PlayerIndex ) then
  25. if ( Item == "taser" ) then
  26. SetValue("rbot_active", 1);
  27. SetValue("rbot_enable", 1);
  28. SetValue("rbot_fov", 15);
  29. SetValue("rbot_speedlimit", 1);
  30. SetValue("rbot_silentaim", 0);
  31. if ( gui.GetValue( "lbot_positionadjustment" ) > 0 ) then
  32. SetValue("rbot_positionadjustment", 5)
  33. else
  34. SetValue("rbot_positionadjustment", 0)
  35. end
  36. else
  37. SetValue("rbot_active", 0);
  38. end
  39.  
  40. end
  41.  
  42. end
  43.  
  44. end
  45.  
  46. end
  47.  
  48. client.AllowListener( "item_equip" )
  49.  
  50. callbacks.Register( "FireGameEvent", "AutoZeus", AutoZeus )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement