Advertisement
evilempireCA

CSGO CASE OPENER WIRE TO EGP v3 SCREEN

Feb 20th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.37 KB | None | 0 0
  1. @name CSGOCaseOpener
  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. if (ABlock < 0) {
  184. Random = ceil(random(0,10000))
  185. if (Random < 10001) {
  186. EGP:egpColor(12,vec(180,180,2))
  187. AItem = "Knife"
  188. AMaterial = Array[1,string]
  189.  
  190. }
  191. if (Random < PriceArray[14,number]) {
  192. EGP:egpColor(12,vec(184,41,41))
  193. AItem = "AWP"
  194. AMaterial = Array[2,string]
  195.  
  196. }
  197. if (Random < PriceArray[13,number]) {
  198. EGP:egpColor(12,vec(184,41,41))
  199. AItem = "M4A1"
  200. AMaterial = Array[3,string]
  201.  
  202.  
  203. }
  204. if (Random < PriceArray[12,number]) {
  205. EGP:egpColor(12,vec(184,42,126))
  206. AItem = "Scout"
  207. AMaterial = Array[4,string]
  208.  
  209.  
  210. }
  211. if (Random < PriceArray[11,number]) {
  212. EGP:egpColor(12,vec(184,42,126))
  213. AItem = "P90"
  214. AMaterial = Array[5,string]
  215.  
  216.  
  217. }
  218. if (Random < PriceArray[10,number]) {
  219. EGP:egpColor(12,vec(184,42,126))
  220. AItem = "AUG"
  221. AMaterial = Array[6,string]
  222.  
  223.  
  224. }
  225. if (Random < PriceArray[9,number]) {
  226. EGP:egpColor(12,vec(103,66,161))
  227. AItem = "XM1014"
  228. AMaterial = Array[7,string]
  229.  
  230.  
  231. }
  232. if (Random < PriceArray[8,number]) {
  233. EGP:egpColor(12,vec(103,66,161))
  234. AItem = "Galil"
  235. AMaterial = Array[8,string]
  236. }
  237. if (Random < PriceArray[7,number]) {
  238. EGP:egpColor(12,vec(103,66,161))
  239. AItem = "AK47"
  240. AMaterial = Array[9,string]
  241.  
  242. }
  243. if (Random < PriceArray[6,number]) {
  244. EGP:egpColor(12,vec(103,66,161))
  245. AItem = "Famas"
  246. AMaterial = Array[10,string]
  247. }
  248. if (Random < PriceArray[5,number]) {
  249. EGP:egpColor(12,vec(45,62,150))
  250. AItem = "Desert Eagle"
  251. AMaterial = Array[11,string]
  252.  
  253. }
  254. if (Random < PriceArray[4,number]) {
  255. EGP:egpColor(12,vec(45,62,150))
  256. AItem = "USP"
  257. AMaterial = Array[12,string]
  258.  
  259. }
  260. if (Random < PriceArray[3,number]) {
  261. EGP:egpColor(12,vec(45,62,150))
  262. AItem = "Dual-Berettes"
  263. AMaterial = Array[13,string]
  264.  
  265. }
  266. if (Random < PriceArray[2,number]) {
  267. EGP:egpColor(12,vec(45,62,150))
  268. AItem = "Glock"
  269. AMaterial = Array[14,string]
  270.  
  271. }
  272. if (Random < PriceArray[1,number]) {
  273. EGP:egpColor(12,vec(45,62,150))
  274. AItem = "P228"
  275. AMaterial = Array[15,string]
  276.  
  277. }
  278.  
  279. ABlock=ABlock+512
  280. AColor = vec(197,192,8)
  281.  
  282. }
  283. # BBlock
  284. if (BBlock < 0) {
  285. Random = ceil(random(0,10000))
  286. if (Random < 10000) {
  287. EGP:egpColor(22,vec(180,180,2))
  288. BItem = "Knife"
  289. BMaterial = Array[1,string]
  290.  
  291. }
  292. if (Random < 9975) {
  293. EGP:egpColor(22,vec(184,41,41))
  294. BItem = "AWP"
  295. BMaterial = Array[2,string]
  296.  
  297. }
  298. if (Random < 9900) {
  299. EGP:egpColor(22,vec(184,41,41))
  300. BItem = "M4A1"
  301. BMaterial = Array[3,string]
  302.  
  303. }
  304. if (Random < 9800) {
  305. EGP:egpColor(22,vec(184,42,126))
  306. BItem = "Scout"
  307. BMaterial = Array[4,string]
  308.  
  309. }
  310. if (Random < 9650) {
  311. EGP:egpColor(22,vec(184,42,126))
  312. BItem = "P90"
  313. BMaterial = Array[5,string]
  314.  
  315. }
  316. if (Random < 9450) {
  317. EGP:egpColor(22,vec(184,42,126))
  318. BItem = "AUG"
  319. BMaterial = Array[6,string]
  320.  
  321. }
  322. if (Random < 9200) {
  323. EGP:egpColor(22,vec(103,66,161))
  324. BItem = "XM1014"
  325. BMaterial = Array[7,string]
  326.  
  327. }
  328. if (Random < 8800) {
  329. EGP:egpColor(22,vec(103,66,161))
  330. BItem = "Galil"
  331. BMaterial = Array[8,string]
  332.  
  333. }
  334. if (Random < 7350) {
  335. EGP:egpColor(22,vec(103,66,161))
  336. BItem = "AK47"
  337. BMaterial = Array[9,string]
  338.  
  339. }
  340. if (Random < 7850) {
  341. EGP:egpColor(22,vec(103,66,161))
  342. BItem = "Famas"
  343. BMaterial = Array[10,string]
  344.  
  345. }
  346. if (Random < 7300) {
  347. EGP:egpColor(22,vec(45,62,150))
  348. BItem = "Desert Eagle"
  349. BMaterial = Array[11,string]
  350.  
  351. }
  352. if (Random < 6400) {
  353. EGP:egpColor(22,vec(45,62,150))
  354. BItem = "USP"
  355. BMaterial = Array[12,string]
  356.  
  357. }
  358. if (Random < 5200) {
  359. EGP:egpColor(22,vec(45,62,150))
  360. BItem = "Dual-Berettes"
  361. BMaterial = Array[13,string]
  362.  
  363. }
  364. if (Random < 3700) {
  365. EGP:egpColor(22,vec(45,62,150))
  366. BItem = "Glock"
  367. BMaterial = Array[14,string]
  368.  
  369. }
  370. if (Random < 2000) {
  371. EGP:egpColor(22,vec(45,62,150))
  372. BItem = "P228"
  373. BMaterial = Array[15,string]
  374.  
  375. }
  376.  
  377. BBlock=BBlock+512
  378. BColor = vec(197,192,8)
  379.  
  380. }
  381. # CClock
  382. if (CBlock < 0) {
  383. Random = ceil(random(0,10000))
  384. if (Random < 10075) {
  385. EGP:egpColor(32,vec(180,180,2))
  386. CItem = "Knife"
  387. CMaterial = Array[1,string]
  388.  
  389. }
  390. if (Random < 9975) {
  391. EGP:egpColor(32,vec(184,41,41))
  392. CItem = "AWP"
  393. CMaterial = Array[2,string]
  394.  
  395. }
  396.  
  397. if (Random < 9900) {
  398. EGP:egpColor(32,vec(184,41,41))
  399. CItem = "M4A1"
  400. CMaterial = Array[3,string]
  401.  
  402. }
  403. if (Random < 9800) {
  404. EGP:egpColor(32,vec(184,42,126))
  405. CItem = "Scout"
  406. CMaterial = Array[4,string]
  407.  
  408. }
  409. if (Random < 9650) {
  410. EGP:egpColor(32,vec(184,42,126))
  411. CItem = "P90"
  412. CMaterial = Array[5,string]
  413.  
  414. }
  415. if (Random < 9450) {
  416. EGP:egpColor(32,vec(184,42,126))
  417. CItem = "AUG"
  418. CMaterial = Array[6,string]
  419.  
  420. }
  421. if (Random < 9200) {
  422. EGP:egpColor(32,vec(103,66,161))
  423. CItem = "XM1014"
  424. CMaterial = Array[7,string]
  425.  
  426. }
  427. if (Random < 8800) {
  428. EGP:egpColor(32,vec(103,66,161))
  429. CItem = "Galil"
  430. CMaterial = Array[8,string]
  431.  
  432. }
  433. if (Random < 7350) {
  434. EGP:egpColor(32,vec(103,66,161))
  435. CItem = "AK47"
  436. CMaterial = Array[9,string]
  437.  
  438. }
  439. if (Random < 7850) {
  440. EGP:egpColor(32,vec(103,66,161))
  441. CItem = "Famas"
  442. CMaterial = Array[10,string]
  443.  
  444. }
  445. if (Random < 7300) {
  446. EGP:egpColor(32,vec(45,62,150))
  447. CItem = "Desert Eagle"
  448. CMaterial = Array[11,string]
  449.  
  450. }
  451. if (Random < 6400) {
  452. EGP:egpColor(32,vec(45,62,150))
  453. CItem = "USP"
  454. CMaterial = Array[12,string]
  455.  
  456. }
  457. if (Random < 5200) {
  458. EGP:egpColor(32,vec(45,62,150))
  459. CItem = "Dual-Berettes"
  460. CMaterial = Array[13,string]
  461.  
  462. }
  463. if (Random < 3700) {
  464. EGP:egpColor(32,vec(45,62,150))
  465. CItem = "Glock"
  466. CMaterial = Array[14,string]
  467.  
  468. }
  469. if (Random < 2000) {
  470. EGP:egpColor(32,vec(45,62,150))
  471. CItem = "P228"
  472. CMaterial = Array[15,string]
  473.  
  474. }
  475.  
  476. CBlock=CBlock+512
  477. CColor = vec(197,192,8)
  478.  
  479. }
  480. #DBLock
  481. if (DBlock < 0) {
  482. Random = ceil(random(0,10000))
  483. if (Random < 10001) {
  484. EGP:egpColor(42,vec(180,180,2))
  485. DItem = "Knife"
  486. DMaterial = Array[1,string]
  487.  
  488. }
  489. if (Random < 9950) {
  490. EGP:egpColor(42,vec(184,41,41))
  491. DItem = "AWP"
  492. DMaterial = Array[2,string]
  493.  
  494. }
  495. if (Random < 9900) {
  496. EGP:egpColor(42,vec(184,41,41))
  497. DItem = "M4A1"
  498. DMaterial = Array[3,string]
  499.  
  500. }
  501. if (Random < 9800) {
  502. EGP:egpColor(42,vec(184,42,126))
  503. DItem = "Scout"
  504. DMaterial = Array[4,string]
  505.  
  506. }
  507. if (Random < 9650) {
  508. EGP:egpColor(42,vec(184,42,126))
  509. DItem = "P90"
  510. DMaterial = Array[5,string]
  511.  
  512. }
  513. if (Random < 9450) {
  514. EGP:egpColor(42,vec(184,42,126))
  515. DItem = "AUG"
  516. DMaterial =Array[6,string]
  517.  
  518.  
  519. }
  520. if (Random < 9200) {
  521. EGP:egpColor(42,vec(103,66,161))
  522. DItem = "XM1014"
  523. DMaterial =Array[7,string]
  524.  
  525. }
  526. if (Random < 8800) {
  527. EGP:egpColor(42,vec(103,66,161))
  528. DItem = "Galil"
  529. DMaterial = Array[8,string]
  530.  
  531. }
  532. if (Random < 7350) {
  533. EGP:egpColor(42,vec(103,66,161))
  534. DItem = "AK47"
  535. DMaterial = Array[9,string]
  536.  
  537. }
  538. if (Random < 7850) {
  539. EGP:egpColor(42,vec(103,66,161))
  540. DItem = "Famas"
  541. DMaterial =Array[10,string]
  542.  
  543. }
  544.  
  545. if (Random < 7300) {
  546. EGP:egpColor(42,vec(45,62,150))
  547. DItem = "Desert Eagle"
  548. DMaterial = Array[11,string]
  549.  
  550. }
  551. if (Random < 6400) {
  552. EGP:egpColor(42,vec(45,62,150))
  553. DItem = "USP"
  554. DMaterial = Array[12,string]
  555.  
  556. }
  557. if (Random < 5200) {
  558. EGP:egpColor(42,vec(45,62,150))
  559. DItem = "Dual-Berettes"
  560. DMaterial = Array[13,string]
  561.  
  562. }
  563. if (Random < 3700) {
  564. EGP:egpColor(42,vec(45,62,150))
  565. DItem = "Glock"
  566. DMaterial = Array[14,string]
  567.  
  568. }
  569. if (Random < 2000) {
  570. EGP:egpColor(42,vec(45,62,150))
  571. DItem = "P228"
  572. DMaterial = Array[15,string]
  573.  
  574. }
  575.  
  576. DBlock=DBlock+512
  577. DColor = vec(197,192,8)
  578.  
  579. }
  580. ABlock=ABlock-Speed
  581. BBlock=BBlock-Speed
  582. CBlock=CBlock-Speed
  583. DBlock=DBlock-Speed
  584. if(Speed==0 & Paid==1){
  585. hint("Item:" + AItem,5)
  586. if (AItem == "P228") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/10,KeyPrice/8)))}
  587. if (AItem == "Glock") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/8,KeyPrice/6)))}
  588. if (AItem == "Dual-Berettes") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/6,KeyPrice/5)))}
  589. if (AItem == "USP") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/5,KeyPrice/3)))}
  590. if (AItem == "Desert Eagle") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice/3,KeyPrice/2)))}
  591.  
  592. if (AItem == "Famas") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*1.0,KeyPrice*1.3)))}
  593. if (AItem == "AK47") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*1.3,KeyPrice*1.6)))}
  594. if (AItem == "Galil") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*1.6,KeyPrice*1.9)))}
  595. if (AItem == "XM1014") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*1.9,KeyPrice*2.3)))}
  596.  
  597. if (AItem == "AUG") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*3,KeyPrice*4)))}
  598. if (AItem == "P90") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*4,KeyPrice*5)))}
  599. if (AItem == "Scout") {moneyGive(moneyClkPlayer(),floor(random(KeyPrice*5,KeyPrice*6)))}
  600.  
  601. if (AItem == "M4A1") {
  602. moneyGive(moneyClkPlayer(),floor(random(KeyPrice*8,KeyPrice*12)))
  603. Temp = random(KeyPrice*8,KeyPrice*12)
  604. moneyGive(moneyClkPlayer(),floor(Temp))
  605. concmd("say /advert " + moneyClkPlayer():name() + " has just gotten a M4A1, worth " + floor(Temp) + "$")
  606. }
  607. if (AItem == "AWP") {
  608. Temp = random(KeyPrice*12,KeyPrice*18)
  609. moneyGive(moneyClkPlayer(),floor(Temp))
  610. concmd("say /advert " + moneyClkPlayer():name() + " has just gotten a AWP, worth " + floor(Temp) + "$")
  611.  
  612. }
  613.  
  614. if (AItem == "Knife") {
  615. Temp = random(KeyPrice*75,KeyPrice*100)
  616. moneyGive(moneyClkPlayer(),floor(Temp))
  617. concmd("say /advert " + moneyClkPlayer():name() + " has just gotten a knife, worth " + floor(Temp) + "$")
  618. }
  619.  
  620. Paid=0
  621.  
  622. soundPlay(5,3,"bot/great.wav")
  623.  
  624.  
  625. EGP:egpBox(53,vec2(256,170),vec2(2,170))
  626. EGP:egpColor(53,vec(102,51,0))
  627.  
  628. EGP:egpBox(50,vec2(0,170),vec2(120,170))
  629. EGP:egpColor(50,vec(16,24,35))
  630. EGP:egpBox(51,vec2(512,170),vec2(120,170))
  631. EGP:egpColor(51,vec(16,24,35))
  632. }
  633. }
  634.  
  635. V=EGP:egpCursor(User)
  636. X=floor(V:x())
  637. Y=floor(V:y())
  638.  
  639.  
  640. if (first() != 0) {
  641.  
  642. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement