Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. sx,sy = guiGetScreenSize()
  2. px,py = 1600,900
  3. x,y = (sx/px), (sy/py)
  4. function draw()
  5. if getPlayerName(localPlayer) == "Banex" then
  6. window = dxCreateWindow(x*320,y*240,x*436,y*480,"",false)
  7. background = dxCreateStaticImage (1,1,217,54,"logo.png",false, window)
  8.  
  9. button4 = dxCreateButton(2, 65, 214, 36, "Assaut Rifles", false, window)
  10. button5 = dxCreateButton(2, 101, 214, 36, "Handguns", false, window)
  11. button6 = dxCreateButton(2, 137, 214, 36, "Melee", false, window)
  12. button7 = dxCreateButton(2, 173, 214, 36, "Shotguns", false, window)
  13. button9 = dxCreateButton(2, 209, 214, 36, "Sub-Machine Guns", false, window)
  14. button2 = dxCreateButton(2,245,214,36,"Equipamentos",false, window)
  15. fechar = dxCreateButton(2,281,214,36,"Fechar",false, window)
  16. voltar = dxCreateButton(2,281,214,36,"Voltar",false, window)
  17.  
  18. button10 = dxCreateButton(2, 65, 214, 36, "Colete", false, window)
  19. button11 = dxCreateButton(2, 101, 214, 36, "Paraquedas", false, window)
  20.  
  21. button12 = dxCreateButton(2,65,214,36,"AK-47",false, window)
  22. button13 = dxCreateButton(2,101,214,36,"M4",false, window)
  23.  
  24. button14 = dxCreateButton(2,65,214,36,"Colt 45",false, window)
  25. button15 = dxCreateButton(2,101,214,36,"Silenced",false, window)
  26. button16 = dxCreateButton(2,137,214,36,"Deagle",false, window)
  27.  
  28. button17 = dxCreateButton(2, 65, 214, 36, "Brass Knuclkes", false, window)
  29. button18 = dxCreateButton(2, 101, 214, 36, "Golf Club", false, window)
  30. button19 = dxCreateButton(2, 137, 214, 36, "Baseball Bat", false, window)
  31. button20 = dxCreateButton(2, 173, 214, 36, "Shovel", false, window)
  32. button21 = dxCreateButton(2, 209, 214, 36, "Pool Cue", false, window)
  33. button22 = dxCreateButton(2, 245, 214, 36, "Katana", false, window)
  34.  
  35. button24 = dxCreateButton(2, 100, 214, 36, "Shotgun", false, window)
  36. button25 = dxCreateButton(2, 140, 214, 36, "Sawed-off", false, window)
  37. button26 = dxCreateButton(2, 180, 214, 36, "Combat Shotgun", false, window)
  38.  
  39. button27 = dxCreateButton(2, 100, 214, 36, "TEC-9", false, window)
  40. button28 = dxCreateButton(2, 140, 214, 36, "UZI", false, window)
  41. button29 = dxCreateButton(2, 180, 214, 36, "MP5", false, window)
  42.  
  43. setMenuVisible("all", false)
  44. setMenuVisible("Principal", true)
  45.  
  46.  
  47. showCursor(true)
  48. end
  49. end
  50. addEventHandler("onClientResourceStart", getRootElement(getThisResource()), draw)
  51.  
  52. addEventHandler("onClientDXClick",getRootElement(),
  53. function()
  54. if ( source == button2 ) then
  55. setMenuVisible("Principal", false)
  56. setMenuVisible(dxGetText(button2), true)
  57. elseif ( source == button3 ) then
  58. setMenuVisible("Principal", false)
  59. setMenuVisible(dxGetText(button3), true)
  60. elseif (source == button4) then
  61. setMenuVisible("Principal", false)
  62. setMenuVisible(dxGetText(button4), true)
  63. elseif (source == button5) then
  64. setMenuVisible("Principal", false)
  65. setMenuVisible(dxGetText(button5), true)
  66. elseif (source == button6) then
  67. setMenuVisible("Principal", false)
  68. setMenuVisible(dxGetText(button6), true)
  69. elseif (source == button7) then
  70. setMenuVisible("Principal", false)
  71. setMenuVisible(dxGetText(button7), true)
  72. elseif (source == button9) then
  73. setMenuVisible("Principal", false)
  74. setMenuVisible(dxGetText(button9), true)
  75. elseif (source == fechar) then
  76. setMenuVisible("all", false)
  77. dxSetVisible(window, false)
  78. dxSetVisible(background, false)
  79. elseif (source == voltar) then
  80. setMenuVisible("all", false)
  81. setMenuVisible("Principal", true)
  82. elseif (source == button10) then
  83. outputChatBox("TEST")
  84. end
  85. end)
  86.  
  87.  
  88. function setMenuVisible(menu,bool)
  89. if menu == "all" then
  90. dxSetVisible(button2, bool)
  91. dxSetVisible(button4, bool)
  92. dxSetVisible(button5, bool)
  93. dxSetVisible(button6, bool)
  94. dxSetVisible(button7, bool)
  95. dxSetVisible(button9, bool)
  96. dxSetVisible(button10, bool)
  97. dxSetVisible(button11, bool)
  98. dxSetVisible(button12, bool)
  99. dxSetVisible(button13, bool)
  100. dxSetVisible(button14, bool)
  101. dxSetVisible(button15, bool)
  102. dxSetVisible(button16, bool)
  103. dxSetVisible(button17, bool)
  104. dxSetVisible(button18, bool)
  105. dxSetVisible(button19, bool)
  106. dxSetVisible(button20, bool)
  107. dxSetVisible(button21, bool)
  108. dxSetVisible(button22, bool)
  109. dxSetVisible(button23, bool)
  110. dxSetVisible(button24, bool)
  111. dxSetVisible(button25, bool)
  112. dxSetVisible(button26, bool)
  113. dxSetVisible(button27, bool)
  114. dxSetVisible(button28, bool)
  115. dxSetVisible(button29, bool)
  116. dxSetVisible(fechar, bool)
  117. dxSetVisible(voltar, bool)
  118. elseif menu == "Equipamentos" then
  119. dxSetVisible(button10, bool)
  120. dxSetVisible(button11, bool)
  121. dxSetVisible(voltar, bool)
  122. elseif menu == "Assaut Rifles" then
  123. dxSetVisible(button12, bool)
  124. dxSetVisible(button13, bool)
  125. dxSetVisible(voltar, bool)
  126. elseif menu == "Handguns" then
  127. dxSetVisible(button14, bool)
  128. dxSetVisible(button15, bool)
  129. dxSetVisible(button16, bool)
  130. dxSetVisible(voltar, bool)
  131. elseif menu == "Melee" then
  132. dxSetVisible(button17, bool)
  133. dxSetVisible(button18, bool)
  134. dxSetVisible(button19, bool)
  135. dxSetVisible(button20, bool)
  136. dxSetVisible(button21, bool)
  137. dxSetVisible(button22, bool)
  138. dxSetVisible(button23, bool)
  139. dxSetVisible(voltar, bool)
  140. elseif menu == "Shotguns" then
  141. dxSetVisible(button24, bool)
  142. dxSetVisible(button25, bool)
  143. dxSetVisible(button26, bool)
  144. dxSetVisible(voltar, bool)
  145. elseif menu == "Sub-Machine Guns" then
  146. dxSetVisible(button27, bool)
  147. dxSetVisible(button28, bool)
  148. dxSetVisible(button29, bool)
  149. dxSetVisible(voltar, bool)
  150. elseif menu == "Principal" then
  151. dxSetVisible(button2, bool)
  152. dxSetVisible(button4, bool)
  153. dxSetVisible(button5, bool)
  154. dxSetVisible(button6, bool)
  155. dxSetVisible(button7, bool)
  156. dxSetVisible(button9, bool)
  157. dxSetVisible(fechar, bool)
  158. end
  159. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement