Advertisement
teoooooo

CSGO OPENER E2 GMOD

Aug 21st, 2017 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 18.26 KB | None | 0 0
  1. @name Piraty z Chujonibow
  2. @inputs EGP:wirelink EGP2:wirelink User:entity
  3. @outputs X Y Kage:string
  4. @persist O Time Array:array Temp PriceArray:array Player:entity SideA SideB Money MoneyOld BaseHeight ABlock BBlock CBlock DBlock Speed Random KeyPrice First AItem:string AMaterial:string BItem:string BMaterial:string CItem:string CMaterial:string DItem:string DMaterial:string Paid
  5. @trigger
  6.  
  7. interval(100)
  8. Screen = entity():isWeldedTo()
  9. #entity():createWire(Screen,"EGP","wirelink")
  10. #entity():createWire(Screen,"User","User")
  11. PriceArray = array(0,3400,4900,6100,7120,7800,8400,8900,9100,9610,9750,9850,9125,9975,10000)
  12. KeyPrice=50000
  13. #=====
  14. #findByClass("player")
  15. #Player = findClosest(entity():pos())
  16. #KeyPrice=floor(Player:money()/50)
  17. #if (KeyPrice > owner():money()/200) {KeyPrice = floor(owner():money()/200)}
  18. #EGP:egpText(5,"Buy Key " + KeyPrice + "$",vec2(80,285))
  19. #Time++
  20. #if (Time % 30 == 0) {First = 1}
  21. #print(Time)Q
  22. #=====
  23. if(First == 0) {
  24.     First = 1
  25.     Paid = 0
  26.     ABlock=0
  27.     BBlock=127
  28.     CBlock=254
  29.     DBlock=381
  30.     BaseHeight=155
  31.     Array = array("vgui/entities/weapon_mad_knife","vgui/gfx/vgui/awp","vgui/gfx/vgui/m4a1","vgui/gfx/vgui/scout","vgui/gfx/vgui/p90","vgui/gfx/vgui/aug","vgui/gfx/vgui/xm1014","vgui/gfx/vgui/galil","vgui/gfx/vgui/ak47","vgui/gfx/vgui/famas","vgui/entities/weapon_mad_deagle","vgui/gfx/vgui/usp45","vgui/entities/weapon_mad_dual","vgui/gfx/vgui/glock18","vgui/gfx/vgui/p228")
  32.    
  33.    
  34.     Speed=random(124.76,126.76)
  35.     #Min Speed = 124.76
  36.     #Max Speed = 126.76
  37.     EGP:egpBox(1,vec2(500,500),vec2(1000,1000))
  38.     EGP:egpColor(1,vec(16,24,35))
  39.     EGP:egpBox(2,vec2(256,170),vec2(400,170))
  40.     EGP:egpColor(2,vec(35,42,46))
  41.     EGP:egpBox(3,vec2(256,170),vec2(395,165))
  42.     EGP:egpColor(3,vec(22,22,22))
  43.    
  44.     EGP:egpBox(4,vec2(256,300),vec2(395,50))
  45.     EGP:egpColor(4,vec(79,113,35))
  46.     EGP:egpText(5,"Buy Key " + KeyPrice + "$",vec2(80,285))
  47.     EGP:egpSize(5,30)
  48.    
  49.    
  50.    
  51.     EGP:egpText(6,"P228: " + floor(KeyPrice/9) + "$ - " + floor(KeyPrice/8) + "$",vec2(30,350))
  52.     EGP:egpSize(6,15)
  53.     EGP:egpText(7,"Glock: " + floor(KeyPrice/7) + "$ - " + floor(KeyPrice/6) + "$",vec2(30,370))
  54.     EGP:egpSize(7,15)
  55.     EGP:egpText(8,"Dual-Berettes: " + floor(KeyPrice/5) + "$ - " + floor(KeyPrice/5) + "$",vec2(30,390))
  56.     EGP:egpSize(8,15)
  57.     EGP:egpText(9,"USP: " + floor(KeyPrice/4) + "$ - " + floor(KeyPrice/3) + "$",vec2(30,410))
  58.     EGP:egpSize(9,15)
  59.     EGP:egpText(16,"Deagle: " + floor(KeyPrice/2) + "$ - " + floor(KeyPrice/2) + "$",vec2(30,430))
  60.     EGP:egpSize(16,15)
  61.    
  62.     EGP:egpText(17,"Famas: " + floor(KeyPrice*1.0) + "$ - " + floor(KeyPrice*1.30) + "$",vec2(30,450))
  63.     EGP:egpSize(17,15)
  64.     EGP:egpText(18,"AK47: " + floor(KeyPrice*1.30) + "$ - " + floor(KeyPrice*1.60) + "$",vec2(30,470))
  65.     EGP:egpSize(18,15)
  66.     EGP:egpText(19,"Galil: " + floor(KeyPrice*1.60) + "$ - " + floor(KeyPrice*1.90) + "$",vec2(30,490))
  67.     EGP:egpSize(19,15)
  68.     EGP:egpText(26,"XM1014: " + floor(KeyPrice*2) + "$ - " + floor(KeyPrice*2.3) + "$",vec2(225,350))
  69.     EGP:egpSize(26,15)
  70.    
  71.     EGP:egpText(28,"AUG: " + floor(KeyPrice*3) + "$ - " + floor(KeyPrice*4) + "$",vec2(225,370))
  72.     EGP:egpSize(28,15)
  73.     EGP:egpText(29,"P90: " + floor(KeyPrice*4) + "$ - " + floor(KeyPrice*5) + "$",vec2(225,390))
  74.     EGP:egpSize(29,15)
  75.     EGP:egpText(36,"Scout: " + floor(KeyPrice*5) + "$ - " + floor(KeyPrice*6) + "$",vec2(225,410))
  76.     EGP:egpSize(36,15)
  77.      
  78.     EGP:egpText(39,"M4A1: " + floor(KeyPrice*8) + "$ - " + floor(KeyPrice*12) + "$",vec2(225,430))
  79.     EGP:egpSize(39,15)
  80.     EGP:egpText(46,"AWP: " + floor(KeyPrice*12) + "$ - " + floor(KeyPrice*15) + "$",vec2(225,450))
  81.     EGP:egpSize(46,15)  
  82.    
  83.     EGP:egpText(47,"Knife: " + floor(KeyPrice*30) + "$ - " + floor(KeyPrice*70) + "$",vec2(225,470))
  84.     EGP:egpSize(47,15)  
  85.  
  86.    
  87.     EGP:egpColor(6,vec(45,62,150))
  88.     EGP:egpColor(7,vec(45,62,150))
  89.     EGP:egpColor(8,vec(45,62,150))
  90.     EGP:egpColor(9,vec(45,62,150))
  91.     EGP:egpColor(16,vec(45,62,150))
  92.  
  93.     EGP:egpColor(17,vec(103,66,161))
  94.     EGP:egpColor(18,vec(103,66,161))
  95.     EGP:egpColor(19,vec(103,66,161))
  96.     EGP:egpColor(26,vec(103,66,161))
  97.  
  98.     EGP:egpColor(28,vec(184,42,126))
  99.     EGP:egpColor(29,vec(184,42,126))
  100.     EGP:egpColor(36,vec(184,42,126))
  101.    
  102.     EGP:egpColor(39,vec(184,41,41))
  103.     EGP:egpColor(46,vec(184,41,41))
  104.    
  105.     EGP:egpColor(47,vec(180,180,2))
  106.  
  107.  
  108. }
  109.  
  110. #if (X>75&450>X&Y>275&Y<375) {
  111.        
  112.     if (Paid==0) {moneyRequest(User,KeyPrice,3)}
  113.     if (moneyClk()) {
  114.         ABlock=0
  115.         BBlock=127
  116.         CBlock=254
  117.         DBlock=381
  118.         soundPlay(1,3,"bot/alright_lets_do_this.wav")
  119.         Speed=random(124.76,126.76)
  120.         Paid=1
  121.     }
  122.  
  123.  
  124.   #EGP:egpBox(51,vec2(0,170),vec2(120,170))
  125.   #EGP:egpBox(50,vec2(512,170),vec2(120,170))
  126.    
  127.    
  128.  
  129. if (Paid == 1) {
  130. EGP:egpBox(10,vec2(ABlock,BaseHeight),vec2(100,100))
  131. EGP:egpColor(10,vec(180,180,180))
  132. EGP:egpBox(11,vec2(ABlock,BaseHeight),vec2(100,100))
  133. EGP:egpMaterial(11,AMaterial)
  134. EGP:egpBox(12,vec2(ABlock,BaseHeight+60),vec2(100,30))
  135. EGP:egpText(130,AItem,vec2(ABlock-45,BaseHeight+50))
  136. EGP:egpColor(130,vec(255,255,255))
  137. EGP:egpSize(130,15)
  138.  
  139. EGP:egpBox(20,vec2(BBlock,BaseHeight),vec2(100,100))
  140. EGP:egpColor(20,vec(180,180,180))
  141. EGP:egpBox(21,vec2(BBlock,BaseHeight),vec2(100,100))
  142. EGP:egpMaterial(21,BMaterial)
  143. EGP:egpBox(22,vec2(BBlock,BaseHeight+60),vec2(100,30))
  144. EGP:egpText(23,BItem,vec2(BBlock-45,BaseHeight+50))
  145. EGP:egpColor(23,vec(255,255,255))
  146. EGP:egpSize(23,15)
  147.  
  148. EGP:egpBox(30,vec2(CBlock,BaseHeight),vec2(100,100))
  149. EGP:egpColor(30,vec(180,180,180))
  150. EGP:egpBox(31,vec2(CBlock,BaseHeight),vec2(100,100))
  151. EGP:egpMaterial(31,CMaterial)
  152. EGP:egpBox(32,vec2(CBlock,BaseHeight+60),vec2(100,30))
  153. EGP:egpText(33,CItem,vec2(CBlock-45,BaseHeight+50))
  154. EGP:egpColor(33,vec(255,255,255))
  155. EGP:egpSize(33,15)
  156.  
  157. EGP:egpBox(40,vec2(DBlock,BaseHeight),vec2(100,100))
  158. EGP:egpColor(40,vec(180,180,180))
  159. EGP:egpBox(41,vec2(DBlock,BaseHeight),vec2(100,100))
  160. EGP:egpMaterial(41,DMaterial)
  161. EGP:egpBox(42,vec2(DBlock,BaseHeight+60),vec2(100,30))
  162. EGP:egpText(43,DItem,vec2(DBlock-45,BaseHeight+50))
  163. EGP:egpColor(43,vec(255,255,255))
  164. EGP:egpSize(43,15)
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. Speed=Speed*0.98
  176. if (Speed < 10) {Speed=Speed*0.98}
  177. if (Speed < 1) {
  178.     Speed=0
  179.     #hint(toString(ABlock),5)1
  180. }
  181. O++
  182.  
  183.  
  184. if (ABlock < 0) {
  185.     Random = ceil(random(0,10000))
  186.     if (Random < 10001) {
  187.         EGP:egpColor(12,vec(180,180,2))
  188.         AItem = "Knife"
  189.         AMaterial = Array[1,string]
  190.        
  191.     }
  192.     if (Random < PriceArray[14,number]) {
  193.         EGP:egpColor(12,vec(184,41,41))
  194.         AItem = "AWP"
  195.         AMaterial = Array[2,string]
  196.          
  197.     }    
  198.     if (Random < PriceArray[13,number]) {
  199.         EGP:egpColor(12,vec(184,41,41))
  200.         AItem = "M4A1"
  201.         AMaterial = Array[3,string]
  202.        
  203.  
  204.     }
  205.     if (Random < PriceArray[12,number]) {
  206.         EGP:egpColor(12,vec(184,42,126))
  207.         AItem = "Scout"
  208.         AMaterial = Array[4,string]
  209.        
  210.        
  211.     }
  212.     if (Random < PriceArray[11,number]) {
  213.         EGP:egpColor(12,vec(184,42,126))
  214.         AItem = "P90"
  215.         AMaterial = Array[5,string]
  216.        
  217.          
  218.     }
  219.     if (Random < PriceArray[10,number]) {
  220.         EGP:egpColor(12,vec(184,42,126))
  221.         AItem = "AUG"
  222.         AMaterial = Array[6,string]
  223.        
  224.        
  225.     }  
  226.     if (Random < PriceArray[9,number]) {
  227.         EGP:egpColor(12,vec(103,66,161))
  228.         AItem = "XM1014"
  229.         AMaterial = Array[7,string]
  230.        
  231.        
  232.     }  
  233.     if (Random < PriceArray[8,number]) {
  234.         EGP:egpColor(12,vec(103,66,161))
  235.         AItem = "Galil"
  236.         AMaterial = Array[8,string]
  237.        
  238.     }  
  239.     if (Random < PriceArray[7,number]) {
  240.         EGP:egpColor(12,vec(103,66,161))
  241.         AItem = "AK47"
  242.         AMaterial = Array[9,string]
  243.        
  244.     }      
  245.     if (Random < PriceArray[6,number]) {
  246.         EGP:egpColor(12,vec(103,66,161))
  247.         AItem = "Famas"
  248.         AMaterial = Array[10,string]
  249.        
  250.     }    
  251.     if (Random < PriceArray[5,number]) {
  252.         EGP:egpColor(12,vec(45,62,150))
  253.         AItem = "Desert Eagle"
  254.         AMaterial = Array[11,string]
  255.        
  256.     }    
  257.     if (Random < PriceArray[4,number]) {
  258.         EGP:egpColor(12,vec(45,62,150))
  259.         AItem = "USP"
  260.         AMaterial = Array[12,string]
  261.          
  262.     }    
  263.     if (Random < PriceArray[3,number]) {
  264.         EGP:egpColor(12,vec(45,62,150))
  265.         AItem = "Dual-Berettes"
  266.         AMaterial = Array[13,string]
  267.        
  268.     }    
  269.     if (Random < PriceArray[2,number]) {
  270.         EGP:egpColor(12,vec(45,62,150))
  271.         AItem = "Glock"
  272.         AMaterial = Array[14,string]
  273.        
  274.     }
  275.     if (Random < PriceArray[1,number]) {
  276.         EGP:egpColor(12,vec(45,62,150))
  277.         AItem = "P228"
  278.         AMaterial = Array[15,string]
  279.        
  280.     }    
  281.    
  282.     ABlock=ABlock+512
  283.     AColor = vec(197,192,8)
  284.    
  285. }
  286. # BBlock
  287. if (BBlock < 0) {
  288.     Random = ceil(random(0,10000))
  289.     if (Random < 10000) {
  290.         EGP:egpColor(22,vec(180,180,2))
  291.         BItem = "Knife"
  292.         BMaterial = Array[1,string]
  293.        
  294.     }
  295.     if (Random < 9975) {
  296.         EGP:egpColor(22,vec(184,41,41))
  297.         BItem = "AWP"
  298.         BMaterial = Array[2,string]
  299.        
  300.     }    
  301.     if (Random < 9900) {
  302.         EGP:egpColor(22,vec(184,41,41))
  303.         BItem = "M4A1"
  304.         BMaterial = Array[3,string]
  305.        
  306.     }
  307.     if (Random < 9800) {
  308.         EGP:egpColor(22,vec(184,42,126))
  309.         BItem = "Scout"
  310.         BMaterial = Array[4,string]
  311.        
  312.     }
  313.     if (Random < 9650) {
  314.         EGP:egpColor(22,vec(184,42,126))
  315.         BItem = "P90"
  316.         BMaterial = Array[5,string]
  317.          
  318.     }
  319.     if (Random < 9450) {
  320.         EGP:egpColor(22,vec(184,42,126))
  321.         BItem = "AUG"
  322.         BMaterial = Array[6,string]
  323.        
  324.     }  
  325.     if (Random < 9200) {
  326.         EGP:egpColor(22,vec(103,66,161))
  327.         BItem = "XM1014"
  328.         BMaterial = Array[7,string]
  329.        
  330.     }  
  331.     if (Random < 8800) {
  332.         EGP:egpColor(22,vec(103,66,161))
  333.         BItem = "Galil"
  334.         BMaterial = Array[8,string]
  335.          
  336.     }  
  337.     if (Random < 7350) {
  338.         EGP:egpColor(22,vec(103,66,161))
  339.         BItem = "AK47"
  340.         BMaterial = Array[9,string]
  341.        
  342.     }      
  343.     if (Random < 7850) {
  344.         EGP:egpColor(22,vec(103,66,161))
  345.         BItem = "Famas"
  346.         BMaterial = Array[10,string]
  347.          
  348.     }    
  349.     if (Random < 7300) {
  350.         EGP:egpColor(22,vec(45,62,150))
  351.         BItem = "Desert Eagle"
  352.         BMaterial = Array[11,string]
  353.        
  354.     }    
  355.     if (Random < 6400) {
  356.         EGP:egpColor(22,vec(45,62,150))
  357.         BItem = "USP"
  358.         BMaterial = Array[12,string]
  359.        
  360.     }    
  361.     if (Random < 5200) {
  362.         EGP:egpColor(22,vec(45,62,150))
  363.         BItem = "Dual-Berettes"
  364.         BMaterial = Array[13,string]
  365.        
  366.     }    
  367.     if (Random < 3700) {
  368.         EGP:egpColor(22,vec(45,62,150))
  369.         BItem = "Glock"
  370.         BMaterial = Array[14,string]
  371.        
  372.     }
  373.     if (Random < 2000) {
  374.         EGP:egpColor(22,vec(45,62,150))
  375.         BItem = "P228"
  376.         BMaterial = Array[15,string]
  377.        
  378.     }    
  379.    
  380.     BBlock=BBlock+512
  381.     BColor = vec(197,192,8)
  382.    
  383. }
  384. # CClock
  385. if (CBlock < 0) {
  386.     Random = ceil(random(0,10000))
  387.     if (Random < 10075) {
  388.         EGP:egpColor(32,vec(180,180,2))
  389.         CItem = "Knife"
  390.         CMaterial = Array[1,string]
  391.        
  392.     }
  393.     if (Random < 9975) {
  394.         EGP:egpColor(32,vec(184,41,41))
  395.         CItem = "AWP"
  396.         CMaterial = Array[2,string]
  397.        
  398.     }    
  399.     if (Random < 9900) {
  400.         EGP:egpColor(32,vec(184,41,41))
  401.         CItem = "M4A1"
  402.         CMaterial = Array[3,string]
  403.        
  404.     }
  405.     if (Random < 9800) {
  406.         EGP:egpColor(32,vec(184,42,126))
  407.         CItem = "Scout"
  408.         CMaterial = Array[4,string]
  409.        
  410.     }
  411.     if (Random < 9650) {
  412.         EGP:egpColor(32,vec(184,42,126))
  413.         CItem = "P90"
  414.         CMaterial = Array[5,string]
  415.          
  416.     }
  417.     if (Random < 9450) {
  418.         EGP:egpColor(32,vec(184,42,126))
  419.         CItem = "AUG"
  420.         CMaterial = Array[6,string]
  421.        
  422.     }  
  423.     if (Random < 9200) {
  424.         EGP:egpColor(32,vec(103,66,161))
  425.         CItem = "XM1014"
  426.         CMaterial = Array[7,string]
  427.        
  428.     }  
  429.     if (Random < 8800) {
  430.         EGP:egpColor(32,vec(103,66,161))
  431.         CItem = "Galil"
  432.         CMaterial = Array[8,string]
  433.          
  434.     }  
  435.     if (Random < 7350) {
  436.         EGP:egpColor(32,vec(103,66,161))
  437.         CItem = "AK47"
  438.         CMaterial = Array[9,string]
  439.        
  440.     }      
  441.     if (Random < 7850) {
  442.         EGP:egpColor(32,vec(103,66,161))
  443.         CItem = "Famas"
  444.         CMaterial = Array[10,string]
  445.          
  446.     }    
  447.     if (Random < 7300) {
  448.         EGP:egpColor(32,vec(45,62,150))
  449.         CItem = "Desert Eagle"
  450.         CMaterial = Array[11,string]
  451.        
  452.     }    
  453.     if (Random < 6400) {
  454.         EGP:egpColor(32,vec(45,62,150))
  455.         CItem = "USP"
  456.         CMaterial = Array[12,string]
  457.        
  458.     }    
  459.     if (Random < 5200) {
  460.         EGP:egpColor(32,vec(45,62,150))
  461.         CItem = "Dual-Berettes"
  462.         CMaterial = Array[13,string]
  463.        
  464.     }    
  465.     if (Random < 3700) {
  466.         EGP:egpColor(32,vec(45,62,150))
  467.         CItem = "Glock"
  468.         CMaterial = Array[14,string]
  469.        
  470.     }
  471.     if (Random < 2000) {
  472.         EGP:egpColor(32,vec(45,62,150))
  473.         CItem = "P228"
  474.         CMaterial = Array[15,string]
  475.        
  476.     }    
  477.    
  478.     CBlock=CBlock+512
  479.     CColor = vec(197,192,8)
  480.    
  481. }
  482. #DBLock
  483. if (DBlock < 0) {
  484.     Random = ceil(random(0,10000))
  485.     if (Random < 10001) {
  486.         EGP:egpColor(42,vec(180,180,2))
  487.         DItem = "Knife"
  488.         DMaterial = Array[1,string]
  489.          
  490.     }
  491.     if (Random < 9950) {
  492.         EGP:egpColor(42,vec(184,41,41))
  493.         DItem = "AWP"
  494.         DMaterial = Array[2,string]
  495.        
  496.     }    
  497.     if (Random < 9900) {
  498.         EGP:egpColor(42,vec(184,41,41))
  499.         DItem = "M4A1"
  500.         DMaterial = Array[3,string]
  501.          
  502.     }
  503.     if (Random < 9800) {
  504.         EGP:egpColor(42,vec(184,42,126))
  505.         DItem = "Scout"
  506.         DMaterial = Array[4,string]
  507.  
  508.     }
  509.     if (Random < 9650) {
  510.         EGP:egpColor(42,vec(184,42,126))
  511.         DItem = "P90"
  512.         DMaterial = Array[5,string]
  513.        
  514.     }
  515.     if (Random < 9450) {
  516.         EGP:egpColor(42,vec(184,42,126))
  517.         DItem = "AUG"
  518.         DMaterial =Array[6,string]
  519.        
  520.     }  
  521.     if (Random < 9200) {
  522.         EGP:egpColor(42,vec(103,66,161))
  523.         DItem = "XM1014"
  524.         DMaterial =Array[7,string]
  525.        
  526.     }  
  527.     if (Random < 8800) {
  528.         EGP:egpColor(42,vec(103,66,161))
  529.         DItem = "Galil"
  530.         DMaterial = Array[8,string]
  531.          
  532.     }  
  533.     if (Random < 7350) {
  534.         EGP:egpColor(42,vec(103,66,161))
  535.         DItem = "AK47"
  536.         DMaterial = Array[9,string]
  537.          
  538.     }      
  539.     if (Random < 7850) {
  540.         EGP:egpColor(42,vec(103,66,161))
  541.         DItem = "Famas"
  542.         DMaterial =Array[10,string]
  543.        
  544.     }    
  545.    
  546.     if (Random < 7300) {
  547.         EGP:egpColor(42,vec(45,62,150))
  548.         DItem = "Desert Eagle"
  549.         DMaterial = Array[11,string]
  550.          
  551.     }    
  552.     if (Random < 6400) {
  553.         EGP:egpColor(42,vec(45,62,150))
  554.         DItem = "USP"
  555.         DMaterial = Array[12,string]
  556.        
  557.     }    
  558.     if (Random < 5200) {
  559.         EGP:egpColor(42,vec(45,62,150))
  560.         DItem = "Dual-Berettes"
  561.         DMaterial = Array[13,string]
  562.        
  563.     }    
  564.     if (Random < 3700) {
  565.         EGP:egpColor(42,vec(45,62,150))
  566.         DItem = "Glock"
  567.         DMaterial = Array[14,string]
  568.        
  569.     }
  570.     if (Random < 2000) {
  571.         EGP:egpColor(42,vec(45,62,150))
  572.         DItem = "P228"
  573.         DMaterial = Array[15,string]
  574.        
  575.     }    
  576.    
  577.     DBlock=DBlock+512
  578.     DColor = vec(197,192,8)
  579.    
  580. }
  581.  
  582.  
  583.  
  584. ABlock=ABlock-Speed
  585. BBlock=BBlock-Speed
  586. CBlock=CBlock-Speed
  587. DBlock=DBlock-Speed
  588. if(Speed==0 & Paid==1){
  589.     hint("Item:" + AItem,5)
  590.     if (AItem == "P228") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/0,KeyPrice/0)))}
  591.     if (AItem == "Glock") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/0,KeyPrice/0)))}
  592.     if (AItem == "Dual-Berettes") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/0,KeyPrice/0)))}
  593.     if (AItem == "USP") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/0,KeyPrice/0)))}
  594.     if (AItem == "Desert Eagle") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/0,KeyPrice/0)))}
  595.    
  596.     if (AItem == "Famas") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  597.     if (AItem == "AK47") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  598.     if (AItem == "Galil") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  599.     if (AItem == "XM1014") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  600.    
  601.     if (AItem == "AUG") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  602.     if (AItem == "P90") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  603.     if (AItem == "Scout") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*0,KeyPrice*0)))}
  604.        
  605.     if (AItem == "M4A1") {
  606.         Temp = random(KeyPrice*0,KeyPrice*0)
  607.         moneyGive(moneyClkPlayer(),floor(Temp))
  608.         concmd("say /advert " + moneyClkPlayer():name() + " has just gotten a M4A1, worth " + floor(Temp) + "$")
  609.     }
  610.     if (AItem == "AWP") {
  611.         Temp = random(KeyPrice*0,KeyPrice*0)
  612.         moneyGive(moneyClkPlayer(),floor(Temp))
  613.         concmd("say /advert " + moneyClkPlayer():name() + " has just gotten a AWP, worth " + floor(Temp) + "$")
  614.        
  615.     }
  616.    
  617.     if (AItem == "Knife") {
  618.         Temp = random(KeyPrice*0,KeyPrice*0)
  619.         moneyGive(moneyClkPlayer(),floor(Temp))
  620.         concmd("say /advert " + moneyClkPlayer():name() + " has just gotten a knife, worth " + floor(Temp) + "$")
  621.     }
  622.    
  623.     Paid=0
  624.    
  625.     soundPlay(5,3,"bot/great.wav")
  626.    
  627.    
  628.     EGP:egpBox(53,vec2(256,170),vec2(2,170))
  629.     EGP:egpColor(53,vec(102,51,0))
  630.    
  631.     EGP:egpBox(50,vec2(0,170),vec2(120,170))
  632.     EGP:egpColor(50,vec(16,24,35))
  633.     EGP:egpBox(51,vec2(512,170),vec2(120,170))
  634.     EGP:egpColor(51,vec(16,24,35))
  635.     }
  636. }
  637.  
  638. V=EGP:egpCursor(User)
  639. X=floor(V:x())
  640. Y=floor(V:y())
  641.  
  642.  
  643. if (first() != 0) {
  644.    
  645. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement