Advertisement
miguelspastes

Delay Shot Extra

Jan 15th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. local RBOT_AIMBOT_REF = gui.Reference( "RAGE", "MAIN", "Aimbot" );
  2.  
  3. local DELAY_SHOT_EXTRA_GROUPBOX = gui.Groupbox( RBOT_AIMBOT_REF, "Delay Shot Extra", 0, 540, 213, 180 );
  4.  
  5. local DELAY_SHOT_EXTRA = gui.Checkbox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot", "Enable", 0 );
  6.  
  7. local DELAY_SHOT_SMG = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_smg", "SMG", "Off", "Accurate Unlag", "Accurate History" );
  8. local DELAY_SHOT_RIFLE = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_rifle", "Rifle", "Off", "Accurate Unlag", "Accurate History" );
  9. local DELAY_SHOT_SHOTGUN = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_shotgun", "Shotgun", "Off", "Accurate Unlag", "Accurate History" );
  10. local DELAY_SHOT_SCOUT = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_scout", "Scout", "Off", "Accurate Unlag", "Accurate History" );
  11. local DELAY_SHOT_AUTOSNIPER = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_autosniper", "Auto Sniper", "Off", "Accurate Unlag", "Accurate History" );
  12. local DELAY_SHOT_SNIPER = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_sniper", "Sniper", "Off", "Accurate Unlag", "Accurate History" );
  13. local DELAY_SHOT_LMG = gui.Combobox( DELAY_SHOT_EXTRA_GROUPBOX, "lua_delayshot_lmg", "LMG", "Off", "Accurate Unlag", "Accurate History" );
  14.  
  15. local function DelayShotExtra( Event )
  16.  
  17. if DELAY_SHOT_EXTRA:GetValue() then
  18.  
  19. if ( Event:GetName() ~= "item_equip" ) then
  20. return;
  21. end
  22.  
  23. local ME = client.GetLocalPlayerIndex();
  24.  
  25. local INT_UID = Event:GetInt( "userid" );
  26. local PlayerIndex = client.GetPlayerIndexByUserID( INT_UID );
  27.  
  28. local WepType = Event:GetInt( "weptype" );
  29. local ITEM = Event:GetString( "item" );
  30.  
  31. if ME == PlayerIndex then
  32. if WepType == 2 then
  33. SMG = true
  34. else
  35. SMG = false
  36. end
  37. if WepType == 3 then
  38. Rifle = true
  39. else
  40. RIFLE = false
  41. end
  42. if WepType == 4 then
  43. Shotgun = true
  44. else
  45. Shotgun = false
  46. end
  47. if WepType == 6 then
  48. LMG = true
  49. else
  50. LMG = false
  51. end
  52. if ITEM == "ssg08" then
  53. Scout = true
  54. else
  55. Scout = false
  56. end
  57. if ITEM == "g3sg1" or ITEM == "scar20" then
  58. AutoSniper = true
  59. else
  60. AutoSniper = false
  61. end
  62. if ITEM == "awp" then
  63. Sniper = true
  64. else
  65. Sniper = false
  66. end
  67. end
  68.  
  69. if SMG then
  70. if DELAY_SHOT_SMG:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  71. elseif DELAY_SHOT_SMG:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  72. elseif DELAY_SHOT_SMG:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  73. end
  74. end
  75. if Rifle then
  76. if DELAY_SHOT_RIFLE:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  77. elseif DELAY_SHOT_RIFLE:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  78. elseif DELAY_SHOT_RIFLE:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  79. end
  80. end
  81. if Shotgun then
  82. if DELAY_SHOT_SHOTGUN:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  83. elseif DELAY_SHOT_SHOTGUN:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  84. elseif DELAY_SHOT_SHOTGUN:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  85. end
  86. end
  87. if Scout then
  88. if DELAY_SHOT_SCOUT:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  89. elseif DELAY_SHOT_SCOUT:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  90. elseif DELAY_SHOT_SCOUT:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  91. end
  92. end
  93. if AutoSniper then
  94. if DELAY_SHOT_AUTOSNIPER:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  95. elseif DELAY_SHOT_AUTOSNIPER:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  96. elseif DELAY_SHOT_AUTOSNIPER:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  97. end
  98. end
  99. if Sniper then
  100. if DELAY_SHOT_SNIPER:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  101. elseif DELAY_SHOT_SNIPER:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  102. elseif DELAY_SHOT_SNIPER:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  103. end
  104. end
  105. if LMG then
  106. if DELAY_SHOT_LMG:GetValue() == 0 then gui.SetValue( "rbot_delayshot", 0 );
  107. elseif DELAY_SHOT_LMG:GetValue() == 1 then gui.SetValue( "rbot_delayshot", 1 );
  108. elseif DELAY_SHOT_LMG:GetValue() == 2 then gui.SetValue( "rbot_delayshot", 2 );
  109. end
  110. end
  111.  
  112. end
  113.  
  114. end
  115.  
  116. callbacks.Register( "FireGameEvent", "Delay Shot Extra", DelayShotExtra )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement