Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.25 KB | None | 0 0
  1. -----------------------------------
  2. ---------------Wolfs---------------
  3. -----------------------------------
  4. local dev = "STEAM_0:1:53406228"
  5. local name = "Summit menu"
  6. local developer = "ThatGamingWolf & Pandaa"
  7. local version = 0.1
  8. Q = {} --Ini a table for the derma
  9. Buddies = {}
  10. local INmenu = false
  11.  
  12. local _G = table.Copy( _G )
  13. local _R = _G.debug.getregistry()
  14.  
  15. local player = _G.player
  16.  
  17. local Count = table.Count
  18. local HasVal = table.HasValue
  19. local Upper = string.upper
  20. local RunCC = RunConsoleCommand
  21. local ConC = _R.Player.ConCommand;
  22.  
  23. CreateClientConVar( "mint_r", 87, true, false)
  24. CreateClientConVar( "mint_g", 183, true, false)
  25. CreateClientConVar( "mint_b", 166, true, false)
  26.  
  27. local C_BMINT = Color(87,183,166)
  28. local C_GREY = Color(203,203,203)
  29. local C_BLUE = Color(45,53,71)
  30. hook.Add("Think", "mint", function() C_MINT = Color(GetConVarNumber("mint_r"),GetConVarNumber("mint_g"),GetConVarNumber("mint_b")) end)
  31. local C_WHTE = Color(255,255,255)
  32. local C_GREN = Color( 171, 209, 171, 255 )
  33. local C_RED = Color( 230, 170, 170, 255 )
  34. local C_LAZER = Color(255,255,255,255)
  35.  
  36. local W = ScrW()/2
  37. local H = ScrH()/2
  38.  
  39. Ctg = {"Home", "Players", "Commands", "Misc","Binds", "Customize", "Info"}
  40. Cat = 1
  41.  
  42. local function AddConVar(n, v)
  43. CreateClientConVar( n, v, true, false)
  44. end
  45.  
  46. Commands = {}
  47.  
  48. for k, v in pairs(Commands)do
  49. split = string.Explode(";",v)
  50. AddConVar(split[1], tonumber(split[2]))
  51. end
  52.  
  53. ns = 0
  54.  
  55. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  56. ----------------------------------------------------------------------------Das Func----------------------------------------------------------------------------------------
  57. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  58.  
  59. surface.CreateFont( "StackSmall", {font = "Default",size = 15,weight = 100,antialias = true} ) --Make dem fonts do
  60. surface.CreateFont( "StackBold", {font = "Default",size = 15,weight = 1000,antialias = true} )
  61. surface.CreateFont( "StackHuge", {font = "Default",size = 25,weight = 500,antialias = true} )
  62.  
  63. function AddPanel(x, y, w, h, c, p)
  64. p = p or nil
  65. Q[Count(Q)+1] = vgui.Create("DPanel", p)
  66. Q[Count(Q)]:SetPos(x, y)
  67. Q[Count(Q)]:SetSize(w, h)
  68. Q[Count(Q)]:SetBackgroundColor(c)
  69. end
  70.  
  71. function AddLabel(x, y, w, h, c, t, f, p)
  72. p = p or nil
  73. f = f or ""
  74. Q[Count(Q)+1] = vgui.Create("DLabel", p)
  75. Q[Count(Q)]:SetPos(x, y)
  76. Q[Count(Q)]:SetSize(w, h)
  77. Q[Count(Q)]:SetText(t)
  78. Q[Count(Q)]:SetFont(f)
  79. Q[Count(Q)]:SetTextColor(c)
  80. end
  81.  
  82. function AddPanelButton(x, y, w, h, c, t, p)
  83. p = p or nil
  84. Q[Count(Q)+1] = vgui.Create("DPanel", p)
  85. Q[Count(Q)]:SetPos(x, y)
  86. Q[Count(Q)]:SetSize(w, h)
  87. Q[Count(Q)]:SetBackgroundColor(c)
  88. local par = Count(Q)
  89.  
  90. Q[Count(Q)+1] = vgui.Create("DButton", Q[par])
  91. Q[Count(Q)]:SetPos(0, 0)
  92. Q[Count(Q)]:SetSize(w, h)
  93. Q[Count(Q)]:SetText((t))
  94. Q[Count(Q)]:SetDrawBackground(false)
  95. table.insert(SavedButtons, Count(Q))
  96. end
  97.  
  98. function AddCheckBox(x, y, b, t, tt)
  99. Q[Count(Q)+1] = vgui.Create("DCheckBox", Q[BG])
  100. Q[Count(Q)]:SetPos(x,y)
  101. Q[Count(Q)]:SetTooltip(tt or "NO INFO")
  102. Q[Count(Q)]:SetConVar(b)
  103. if GetConVarNumber(b) == 1 then
  104. Q[Count(Q)]:SetChecked(true)
  105. else
  106. Q[Count(Q)]:SetChecked(false)
  107. end
  108. table.insert(SaveCheckBox, Count(Q))
  109. table.insert(SaveChecks, b)
  110.  
  111. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  112. Q[Count(Q)]:SetText(t)
  113. Q[Count(Q)]:SetSize(200, 15)
  114. Q[Count(Q)]:SetPos(x+20,y)
  115. Q[Count(Q)]:SetTextColor(C_BLUE)
  116. end
  117.  
  118.  
  119.  
  120. function FindPlayer(name)
  121. for _, v in ipairs(player.GetAll()) do
  122. if string.find(string.lower(v:Nick()), string.lower(name)) then
  123. return v
  124. end
  125. end
  126. end
  127.  
  128. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  129. ----------------------------------------------------------------------------Das Code----------------------------------------------------------------------------------------
  130. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  131.  
  132.  
  133. local function home() --We can keep these and rename later
  134. SavedButtons2 = {}
  135. end
  136.  
  137. local function players()
  138. SavePayerBG = {}
  139. SaveBuddyBtn = {}
  140. SavePlyProf = {}
  141. SavePly = {}
  142.  
  143. Q[Count(Q)+1] = vgui.Create( "DScrollPanel", Q[BG])
  144. Q[Count(Q)]:SetSize( 800, 260)
  145. Q[Count(Q)]:SetPos(0,40)
  146. local Scroller = Count(Q)
  147.  
  148. Q[Count(Q)+1] = vgui.Create( "DGrid", Q[BG] )
  149. Q[Count(Q)]:SetPos( 4, 0 )
  150. Q[Count(Q)]:SetCols(4)
  151. Q[Count(Q)]:SetColWide(195)
  152. Q[Count(Q)]:SetRowHeight(65)
  153. Q[Scroller]:AddItem( Q[Count(Q)] )
  154. GRID = Count(Q)
  155. for _, ply in pairs(Players)do
  156. Q[Count(Q)+1] = vgui.Create("DPanel")
  157. Q[Count(Q)]:SetPos(0, 0)
  158. Q[Count(Q)]:SetSize(190, 60)
  159. Q[Count(Q)]:SetBackgroundColor(Color(180,180,180,255))
  160. table.insert(SavePayerBG, Count(Q))
  161. Q[GRID]:AddItem( Q[Count(Q)] )
  162. end
  163. for _, ply in pairs(Players)do
  164. Q[Count(Q)+1] = vgui.Create("AvatarImage", Q[SavePayerBG[_]])
  165. Q[Count(Q)]:SetPos(5,6)
  166. Q[Count(Q)]:SetSize(32, 32)
  167. Q[Count(Q)]:SetPlayer( ply, 32 )
  168.  
  169. Q[Count(Q)+1] = vgui.Create("DButton", Q[SavePayerBG[_]])
  170. Q[Count(Q)]:SetPos(5,6)
  171. Q[Count(Q)]:SetSize(32, 32)
  172. Q[Count(Q)]:SetDrawBackground(false)
  173. Q[Count(Q)]:SetText("")
  174. table.insert(SavePlyProf, Count(Q))
  175. table.insert(SavePly, ply)
  176.  
  177. Q[Count(Q)+1] = vgui.Create("DLabel", Q[SavePayerBG[_]])
  178. Q[Count(Q)]:SetText(ply:Nick())
  179. Q[Count(Q)]:SetSize(200, 15)
  180. Q[Count(Q)]:SetPos(40,8)
  181. Q[Count(Q)]:SetTextColor(C_BLUE)
  182.  
  183. Q[Count(Q)+1] = vgui.Create("DLabel", Q[SavePayerBG[_]]) --I need to update this to account for bots since they have a steam ID of null
  184. Q[Count(Q)]:SetText(ply:SteamID())
  185. Q[Count(Q)]:SetSize(200, 15)
  186. Q[Count(Q)]:SetPos(1,46)
  187. Q[Count(Q)]:SetTextColor(Color(45,53,71,150))
  188.  
  189. Q[Count(Q)+1] = vgui.Create("DLabel", Q[SavePayerBG[_]])
  190. if type(ply:GetActiveWeapon()) == "Weapon" and ply:GetActiveWeapon() and ply:GetActiveWeapon():IsValid() then
  191. Q[Count(Q)]:SetText("Weapon: "..ply:GetActiveWeapon():GetPrintName())
  192. else
  193. Q[Count(Q)]:SetText("NOTHING")
  194. end
  195. Q[Count(Q)]:SetSize(200, 15)
  196. Q[Count(Q)]:SetPos(40,19)
  197. Q[Count(Q)]:SetTextColor(Color(45,53,71,180))
  198.  
  199. if(table.HasValue(Buddies, ply))then
  200. AddPanelButton(170, 0, 20, 60, C_GREN, "", Q[SavePayerBG[_]])
  201. else
  202. AddPanelButton(170, 0, 20, 60, C_RED, "", Q[SavePayerBG[_]])
  203. end
  204. table.insert(SaveBuddyBtn, Count(Q))
  205. end
  206. for k, v in pairs(SaveBuddyBtn)do
  207. Q[v].DoClick = function()
  208. if(!table.HasValue(Buddies, Players[k]))then
  209. table.insert(Buddies, Players[k])
  210. else
  211. for _, l in pairs(Buddies)do
  212. if(l == Players[k])then
  213. table.remove(Buddies, _)
  214. end
  215. end
  216. end
  217. cmenu() menu()
  218. end
  219. end
  220. for k, v in pairs(SavePlyProf)do
  221. Q[v].DoClick = function()
  222. SavePly[k]:ShowProfile()
  223. end
  224. end
  225. end
  226. local function Commands()
  227.  
  228. end
  229.  
  230. local function misc()
  231. SaveKey = {}
  232. end
  233.  
  234. local function Binds()
  235. AddLabel(20, 30, 200, 20, C_BLUE, "Binds","StackHuge", Q[BG])
  236. AddLabel(10, 65, 80, 25, C_BLUE, "Noclip - ","StackBold", Q[BG])
  237. AddLabel(10, 95, 80, 25, C_BLUE, "Name - ","StackBold", Q[BG])
  238. AddLabel(10, 125, 80, 25, C_BLUE, "Name - ","StackBold", Q[BG])
  239. AddLabel(10, 155, 80, 25, C_BLUE, "Name - ","StackBold", Q[BG])
  240. AddLabel(10, 185, 80, 25, C_BLUE, "Name - ","StackBold", Q[BG])
  241. AddLabel(10, 215, 80, 25, C_BLUE, "Name - ","StackBold", Q[BG])
  242.  
  243. local binder = vgui.Create( "DBinder", Q[BG] )
  244. binder:SetSize( 80, 25 )
  245. binder:SetPos( 57, 65 )
  246.  
  247. function binder:SetSelectedNumber( num )
  248. self.m_iSelectedNumber = num -- Preserve original functionality
  249. LocalPlayer():ChatPrint( "New bound key: "..input.GetKeyName( num ) )
  250. end
  251. end
  252.  
  253. local function customize()
  254.  
  255. Q[Count(Q)+1] = vgui.Create( "DColorMixer", Q[BG])
  256. Q[Count(Q)]:SetSize( 300, 190);
  257. Q[Count(Q)]:SetPos( 65*7+10, 40 );
  258. Q[Count(Q)]:SetColor(Color(255,0,255,255))
  259. local mixer = Count(Q)
  260.  
  261. AddPanelButton(65*7+170, 240, 140, 20, Color(200,200,200,255), "Set Color", Q[BG])
  262. Q[Count(Q)].DoClick = function()
  263. local color = Q[mixer]:GetColor()
  264. LocalPlayer():ConCommand("mint_r " .. color.r)
  265. LocalPlayer():ConCommand("mint_g " .. color.g)
  266. LocalPlayer():ConCommand("mint_b " .. color.b)
  267. timer.Simple(0.1,function() cmenu() menu() end)
  268. end
  269.  
  270. end
  271.  
  272. function info()
  273. AddLabel(10, 40, 200, 20, C_BLUE, "INFO", "StackHuge", Q[BG])
  274. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  275. Q[Count(Q)]:SetPos(10, -25)
  276. Q[Count(Q)]:SetWrap(true)
  277. Q[Count(Q)]:SetSize(300, 200)
  278. Q[Count(Q)]:SetText("Welcome to Summit menu " .. version .. " by " .. developer )
  279. Q[Count(Q)]:SetTextColor(C_BLUE)
  280.  
  281.  
  282.  
  283. AddLabel(350, 40, 200, 20, C_BLUE, "BETA", "StackHuge", Q[BG])
  284. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  285. Q[Count(Q)]:SetPos(350, 0)
  286. Q[Count(Q)]:SetWrap(true)
  287. Q[Count(Q)]:SetSize(300, 200)
  288. Q[Count(Q)]:SetText("Thanks to the following people for beta testing or ideas~ \n - Elf1234325 \n - \n - \n - ")
  289. Q[Count(Q)]:SetTextColor(C_BLUE)
  290.  
  291.  
  292. end
  293.  
  294.  
  295.  
  296. function menu()
  297. SavedButtons = {}
  298. SaveCheckBox = {}
  299. SaveChecks = {}
  300. Players = {}
  301.  
  302. for k, v in pairs(player.GetAll())do
  303. //if(v != LocalPlayer())then
  304. table.insert(Players, v)
  305. //end
  306. end
  307.  
  308. INmenu = true
  309.  
  310. TempX = W-500
  311. for k, v in pairs(Ctg)do
  312. SW, SH, Y = 100, 50, H-190
  313. if( k == Cat )then col = C_MINT else col = C_BLUE end
  314. if( k == Cat )then SW, SH, Y = 110, 60, H-200 end
  315. AddPanelButton(TempX+k*101, Y, SW, SH, col, v)
  316. if( k == Cat )then TempX = TempX + 10 end
  317. end
  318. for i = 1, Count(SavedButtons)do
  319. Q[SavedButtons[i]].DoClick = function()
  320. Cat = i
  321. surface.PlaySound("ui/hint.wav")
  322. cmenu()
  323. menu()
  324. end
  325. end
  326. AddPanel(W-400, H-150, 800, 300, C_GREY)
  327. BG = Count(Q)
  328. AddLabel(10, 40, 200, 20, Color(100,100,100,0), "", "StackSmall", Q[BG]) --Nulled since we dont need it ... We should probs take it out but yolo
  329.  
  330.  
  331. Q[Count(Q)]:SetSize(200,200)
  332. Q[Count(Q)]:SetPos(700,200)
  333.  
  334. if(Cat == 1)then home()
  335. elseif(Cat == 2)then players()
  336. elseif(Cat == 3)then Commands()
  337. elseif(Cat == 4)then misc()
  338. elseif(Cat == 5)then Binds()
  339. elseif(Cat == 6)then customize()
  340. elseif(Cat == 7)then info()
  341. end
  342. end
  343.  
  344. function cmenu() --Needed
  345. INmenu = false
  346. for _, v in pairs(Q)do v:Remove() end
  347. end
  348.  
  349. concommand.Add("imenu", function()
  350. if INmenu then
  351. cmenu()
  352. gui.EnableScreenClicker(false)
  353. else
  354. menu()
  355. gui.EnableScreenClicker(true)
  356. end
  357. end)
  358.  
  359.  
  360. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  361. --------------------------------------------------------------------------Misc DONT USE----------------------------------------------------------------------------------------
  362. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  363. --[[ -- DONT UNCOMMENT FFS xD
  364. jokes = {
  365. "How many lightbulbs does it take to screw in a nigger? :D",
  366. "It only takes 2 planes to knock down 2 towers. :D",
  367. "Whats a jew's worst nightmare? The Holocaust. :D",
  368. "Do you know Jesse? JESSE DEEZ NUTZ. :D",
  369. "Invisble children, only at night. :D",
  370. "If concerned about kony, I feel bad for you son, he stole 99 children and your concern saved none. :D",
  371. "Why did the chicken cross the road? His family was experiencing financial troubles, and needed money. He tried applying for many jobs, but they just didn’t quite work out. :D",
  372. "What drugs do ducks sell? Quack Cocaine. :D",
  373. "I like my women how I like my coffee. Ground up and in the freezer. :D",
  374. "What do spinach and anal sex have in common? If you were forced to have it as a kid, you'll hate it as an adult. :D",
  375. "What's the difference between a gay man and a refrigerator? The fridge doesn't fart when you pull your meat out. :D",
  376. "My last girlfriend called me a pedophile. Pretty big word for a 12-year-old. :D",
  377. "I locked my keys in my car outside of an abortion clinic the other night. It turns out they get really pissed when you go in and ask them for a coat hanger. :D",
  378. "How does every Black joke start? By looking over your shoulder! :D",
  379. "Why do black people smell so bad? So blind people can hate them, too. :D",
  380. "What's better than winning a gold medal in the Special Olympics? Not being retarded. :D",
  381. "A black man takes a girl home from a nightclub. She says 'Show me it's true what they say about black men.' So he stabs her & nicks her purse. :D",
  382. "What do you get when you cross a black guy with an octopus? I don't know but it sure could pick a lot of cotton. :D",
  383. "What has 8 balls and rapes Mexicans. The lottery. :D",
  384. "A smoking hot girl walks into a bar. A guy at the bar says, 'Wow, you're gonna get laid tonight!' She replies, 'Hehe, how do you know?' And he replies, 'Because I'm stronger than you.' :D",
  385. "What's al Qaeda's favorite football team? The New York Jets. :D",
  386. "What do japanese men do when they have an erection? Vote. :D",
  387. "Why do black people only have nightmares? The last one who had a dream got shot. :D",
  388. "If you have sex with a prostitute without her permission, is it rape or shoplifting? :D",
  389. "I just saw that Harry Potter film. A bit unrealistic if you ask me. I mean, a ginger kid, with two friends? :D",
  390. "Agent x2 is a fucking faggot! :tart:",
  391. "A black man, an Arab man, and an Asian man walk into a bar. The bartender says, 'Get the fuck out!' :D",
  392. "How do you make a black person nervous? Take him to an auction. :D",
  393. "What's the difference between a dead baby and my girlfriend? I don't kiss my girlfriend after sex. :D",
  394. "Just finished watching Obama's Inauguration, and was suprised to see hardly any white people there. But then again they were probably all working. :D",
  395. "A dyslexic man walks into a bra. :D",
  396. "Have you ever had Nigerian food? Neither have they. :D",
  397. }
  398. --]]
  399.  
  400.  
  401. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  402. ---------------------------------------------------------------------------VGUI---------------------------------------------------------------------------------------------
  403. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement