Advertisement
Guest User

Untitled

a guest
Dec 30th, 2021
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.91 KB | None | 0 0
  1. @name STYLE | GUNSHOP | VERSION 1.00
  2. @inputs E:wirelink U:entity CP:wirelink CU:entity [R1,R2,R3,R4,R5,R6,R7,R8]:entity
  3. @outputs
  4. @persist [CurUser]:entity [Velkommen,Name,WebName,Currency,ChooseIcon,Seneste]:string [FinalVelkommen, FinalName]:array
  5. @persist [S,SC,ST,Profit,Rabat,Price,Count,Omsat,Tjent,Onlinevaaben,,W1,W2,W3,W4,W5,W6,W7,W8,Close,BlackPrice]:number [Blacklisted]:table
  6. @trigger
  7. if(first()){
  8.  
  9. #CONFIG
  10. Profit = 939
  11. Rabat = 5
  12. BlackPrice = 25000
  13. WebName = "- S T Y L E -"
  14. Currency = "$"
  15. ChooseIcon = "data/stavox/images/mdicons_32_shopping_basket.png"
  16. ##############
  17.  
  18.  
  19. function number wirelink:egpButton(Idx:number,Ply:entity)
  20. {
  21. TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
  22. BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
  23. Cur = This:egpCursor(Ply) return inrange(Cur, TL, BR) exit()
  24. }
  25. function string moneyFormat(M:number)
  26. {
  27. local Q = M < 1000000 # No need to do math?
  28. local P = Q ? "^(-?%d+)(%d%d%d)" : "^(-?%d+)(%d%d%d)(%d%d%d)"
  29. local N = Q ? "%1.%2" : "%1.%2.%3"
  30. return M:toString():replaceRE(P, N) #Regular Expressions // Yaay
  31. }
  32. function number entity:wepPrice()
  33. {
  34. if(This:isShipment()){
  35. O = (This:shipmentPrice()*Rabat)/100
  36. return round(This:shipmentPrice()+Profit-O)
  37. }else{return 0}
  38. }
  39.  
  40. function string entity:wepName()
  41. {
  42. if(This:isShipment()){
  43. return This:shipmentName()
  44. }else{return "Out Of Stuck"}
  45. }
  46. function number shipmentInStock()
  47. {
  48. return (R1:isShipment() || R2:isShipment() || R3:isShipment() || R4:isShipment() || R5:isShipment() || R6:isShipment() || R7:isShipment() || R8:isShipment())
  49. }
  50. function void addCursor()
  51. {
  52. E:egpPoly(999,array(vec2(0,0),vec2(0,15),vec2(3,12),vec2(5,15),vec2(7,15),vec2(6,11),vec2(10,10)))
  53. E:egpColor(999,0,0,0,200)
  54. E:egpParentToCursor(999)
  55. }
  56.  
  57. runOnChat(1)
  58. timer("drawStart",200)
  59. timer("drawCpStats",500)
  60. stoptimer("CurUserDistance")
  61. }
  62.  
  63.  
  64. if(clk("drawStart")){
  65.  
  66. S = 1
  67.  
  68. E:egpClear()
  69.  
  70. E:egpBox(1,vec2(256,460),vec2(512,920))
  71. E:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
  72.  
  73. E:egpBox(2,vec2(256,256),vec2(512,512))
  74. E:egpColor(2,45,45,45,220)
  75.  
  76. E:egpBox(3,vec2(256,60),vec2(460,80))
  77. E:egpColor(3,35,45,65,50)
  78.  
  79. E:egpBox(4,vec2(256,60),vec2(460,80))
  80. E:egpColor(4,35,35,35,150)
  81. E:egpMaterial(4,"gui/center_gradient")
  82.  
  83. E:egpText(5,WebName,vec2(256,60))
  84. E:egpAlign(5,1,1)
  85. E:egpFont(5,"Courier New",34)
  86.  
  87. E:egpBox(6,vec2(256,400),vec2(300,80))
  88. E:egpColor(6,35,35,35,230)
  89.  
  90. E:egpText(7,"Login",vec2(256,400))
  91. E:egpAlign(7,1,1)
  92. E:egpFont(7,"Courier New",28)
  93.  
  94. Velkommen = ""
  95. E:egpText(8,Velkommen,vec2(256,400))
  96. E:egpAlign(8,1,1)
  97. E:egpFont(8,"Courier New",28)
  98. E:egpColor(10,224, 224, 215,255)
  99.  
  100. if(Rabat>0){
  101. E:egpBox(50,vec2(472,40),vec2(170,42))
  102. E:egpAngle(50,-45)
  103. E:egpColor(50,50,141,194,255)
  104.  
  105. E:egpText(51,"Spar "+Rabat+"%",vec2(472,40))
  106. E:egpAlign(51,1,1)
  107. E:egpFont(51,"Courier New",20)
  108. E:egpAngle(51,-45)
  109. }
  110.  
  111.  
  112.  
  113. stoptimer("CurUserDistance")
  114. CurUser = noentity() W1=0 W2=0 W3=0 W4=0 W5=0 W6=0 W7=0 W8=0 Price = 0
  115. addCursor()
  116. }
  117.  
  118. if(clk("drawShop")){
  119.  
  120. S = 2
  121.  
  122. E:egpClear()
  123.  
  124. E:egpBox(1,vec2(256,460),vec2(512,920))
  125. E:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
  126.  
  127. E:egpBox(2,vec2(256,256),vec2(512,512))
  128. E:egpColor(2,45,45,45,220)
  129.  
  130. E:egpBox(50,vec2(256,256),vec2(360,512))
  131. E:egpColor(50,15,15,15,150)
  132.  
  133. E:egpBox(3,vec2(256,100),vec2(250,1))
  134. E:egpColor(3,214, 48, 49,255)
  135.  
  136. E:egpBox(4,vec2(256,100),vec2(1,250))
  137. E:egpMaterial(4,"gui/gradient_down")
  138. E:egpColor(4,9, 132, 227,255)
  139. E:egpAngle(4,90)
  140.  
  141. E:egpText(5,WebName,vec2(256,88))
  142. E:egpAlign(5,1,1)
  143. E:egpFont(5,"Courier New",20)
  144.  
  145. if(R1:isShipment()){
  146. #Slot 1
  147. E:egpBox(6,vec2(256,136),vec2(250,26))
  148. E:egpColor(6,25,25,25,175)
  149.  
  150. E:egpText(7,R1:wepName()+" | "+R1:wepPrice()+" "+Currency,vec2(140,136))
  151. E:egpAlign(7,0,1)
  152. E:egpFont(7,"Courier New",16)
  153. }
  154.  
  155. if(R2:isShipment()){
  156. #Slot2
  157. E:egpBox(8,vec2(256,136+30),vec2(250,26))
  158. E:egpColor(8,25,25,25,175)
  159.  
  160. E:egpText(9,R2:wepName()+" | "+R2:wepPrice()+" "+Currency,vec2(140,136+30))
  161. E:egpAlign(9,0,1)
  162. E:egpFont(9,"Courier New",16)
  163. }
  164.  
  165. if(R3:isShipment()){
  166. #Slot3
  167. E:egpBox(10,vec2(256,136+60),vec2(250,26))
  168. E:egpColor(10,25,25,25,175)
  169.  
  170. E:egpText(11,R3:wepName()+" | "+R3:wepPrice()+" "+Currency,vec2(140,136+60))
  171. E:egpAlign(11,0,1)
  172. E:egpFont(11,"Courier New",16)
  173. }
  174.  
  175. if(R4:isShipment()){
  176. #Slot4
  177. E:egpBox(12,vec2(256,136+90),vec2(250,26))
  178. E:egpColor(12,25,25,25,175)
  179.  
  180. E:egpText(13,R4:wepName()+" | "+R4:wepPrice()+" "+Currency,vec2(140,136+90))
  181. E:egpAlign(13,0,1)
  182. E:egpFont(13,"Courier New",16)
  183. }
  184.  
  185. if(R5:isShipment()){
  186. #Slot5
  187. E:egpBox(14,vec2(256,136+120),vec2(250,26))
  188. E:egpColor(14,25,25,25,175)
  189.  
  190. E:egpText(15,R5:wepName()+" | "+R5:wepPrice()+" "+Currency,vec2(140,136+120))
  191. E:egpAlign(15,0,1)
  192. E:egpFont(15,"Courier New",16)
  193. }
  194.  
  195. if(R6:isShipment()){
  196. #Slot6
  197. E:egpBox(16,vec2(256,136+150),vec2(250,26))
  198. E:egpColor(16,25,25,25,175)
  199.  
  200. E:egpText(17,R6:wepName()+" | "+R6:wepPrice()+" "+Currency,vec2(140,136+150))
  201. E:egpAlign(17,0,1)
  202. E:egpFont(17,"Courier New",16)
  203. }
  204.  
  205. if(R7:isShipment()){
  206. #Slot7
  207. E:egpBox(18,vec2(256,136+180),vec2(250,26))
  208. E:egpColor(18,25,25,25,175)
  209.  
  210. E:egpText(19,R7:wepName()+" | "+R7:wepPrice()+" "+Currency,vec2(140,136+180))
  211. E:egpAlign(19,0,1)
  212. E:egpFont(19,"Courier New",16)
  213. }
  214.  
  215. if(R8:isShipment()){
  216. #Slot8
  217. E:egpBox(20,vec2(256,136+210),vec2(250,26))
  218. E:egpColor(20,25,25,25,175)
  219.  
  220. E:egpText(21,R8:wepName()+" | "+R8:wepPrice()+" "+Currency,vec2(140,136+210))
  221. E:egpAlign(21,0,1)
  222. E:egpFont(21,"Courier New",16)
  223. }
  224. E:egpBox(22,vec2(142,434),vec2(20,80))
  225. E:egpColor(22,15,15,15,200)
  226.  
  227. E:egpText(23," - KURV -",vec2(142,434))
  228. E:egpAlign(23,1,1)
  229. E:egpFont(23,"Courier New",16)
  230. E:egpAngle(23,90)
  231.  
  232. E:egpBox(24,vec2(267,434),vec2(230,80))
  233. E:egpColor(24,25,25,25,200)
  234.  
  235. E:egpBox(25,vec2(267,434),vec2(1,70))
  236.  
  237. E:egpBox(26,vec2(324,434),vec2(60,60))
  238. E:egpMaterial(26,"data/stavox/images/misc_mobilepayicon.png")
  239.  
  240. E:egpText(27,"Total Bel"+oe()+"b",vec2(208,410))
  241. E:egpAlign(27,1,1)
  242. E:egpFont(27,"Courier New",16)
  243.  
  244. E:egpBox(28,vec2(208,418),vec2(90,1))
  245.  
  246. E:egpText(29,"0 "+Currency,vec2(208,440))
  247. E:egpAlign(29,1,1)
  248. E:egpFont(29,"Courier New",20)
  249. E:egpColor(29,50,141,194,255)
  250.  
  251. E:egpBox(30,vec2(256,500),vec2(20,20))
  252. E:egpMaterial(30,"data/stavox/images/misc_homebutton.png")
  253. E:egpColor(30,50,141,194,255)
  254. addCursor()
  255. }
  256.  
  257.  
  258. if(clk("drawCpStats")){
  259.  
  260. SC = 1
  261.  
  262. CP:egpClear()
  263.  
  264. CP:egpBox(1,vec2(256,460),vec2(512,920))
  265. CP:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
  266.  
  267. CP:egpBox(2,vec2(256,256),vec2(512,512))
  268. CP:egpColor(2,45,45,45,220)
  269.  
  270. CP:egpBox(3,vec2(256,136),vec2(250,40))
  271. CP:egpColor(3,237,234,255,255)
  272.  
  273. CP:egpText(4,"- S T Y L E -",vec2(256,136))
  274. CP:egpAlign(4,1,1)
  275. CP:egpFont(4,"Courier New",22)
  276. CP:egpColor(4,0,0,0,255)
  277.  
  278. CP:egpBox(5,vec2(256,291),vec2(240,270))
  279. CP:egpColor(5,15,15,15,200)
  280.  
  281. CP:egpBox(6,vec2(256,190),vec2(226,40))
  282. CP:egpColor(6,19,19,19,150)
  283.  
  284. CP:egpBox(7,vec2(168,190),vec2(30,30))
  285. CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_open.png")
  286. CP:egpColor(7,255, 255, 255,255)
  287.  
  288. CP:egpBox(8,vec2(220,190),vec2(30,30))
  289. CP:egpMaterial(8,"data/stavox/images/misc_icon-options.png")
  290.  
  291. CP:egpBox(9,vec2(278,190),vec2(36,36))
  292. CP:egpMaterial(9,"data/stavox/images/mdicons_128_trending_up.png")
  293. CP:egpColor(9,50,141,194,255)
  294.  
  295. CP:egpBox(10,vec2(340,190),vec2(30,30))
  296. CP:egpMaterial(10,"data/stavox/images/mdicons_128_playlist_add_check.png")
  297.  
  298. CP:egpBox(11,vec2(256,232),vec2(220,30))
  299. CP:egpColor(11,5,5,5,200)
  300.  
  301. CP:egpText(12,"Oms"+ae()+"tning: "+moneyFormat(Omsat)+" "+Currency,vec2(160,232))
  302. CP:egpAlign(12,0,1)
  303. CP:egpFont(12,"Courier New",16)
  304.  
  305. CP:egpBox(13,vec2(256,232+34),vec2(220,30))
  306. CP:egpColor(13,5,5,5,200)
  307.  
  308. CP:egpText(14,"Overskud: "+moneyFormat(Tjent)+" "+Currency,vec2(160,232+34))
  309. CP:egpAlign(14,0,1)
  310. CP:egpFont(14,"Courier New",16)
  311.  
  312. CP:egpBox(15,vec2(256,232+68),vec2(220,30))
  313. CP:egpColor(15,5,5,5,200)
  314.  
  315. CP:egpText(16,"V"+aa()+"ben solgt: "+Count+" pcs.",vec2(160,232+68))
  316. CP:egpAlign(16,0,1)
  317. CP:egpFont(16,"Courier New",16)
  318.  
  319. CP:egpBox(17,vec2(256,232+102),vec2(220,30))
  320. CP:egpColor(17,5,5,5,200)
  321.  
  322. CP:egpText(18,"V"+aa()+"ben online: "+Onlinevaaben+" pcs.",vec2(160,232+102))
  323. CP:egpAlign(18,0,1)
  324. CP:egpFont(18,"Courier New",16)
  325.  
  326. CP:egpBox(19,vec2(256,232+136),vec2(220,30))
  327. CP:egpColor(19,5,5,5,200)
  328.  
  329. CP:egpText(20,"Senest kunde: Ingen",vec2(160,232+136))
  330. CP:egpAlign(20,0,1)
  331. CP:egpFont(20,"Courier New",16)
  332.  
  333. if(Seneste != ""){
  334. CP:egpSetText(20,"Seneste kunde: "+Seneste)
  335. }else{
  336. CP:egpSetText(20,"Seneste kunde: Ingen")
  337. }
  338.  
  339. CP:egpBox(21,vec2(256,232+170),vec2(220,30))
  340. CP:egpColor(21,5,5,5,200)
  341.  
  342. CP:egpText(22,"Status: "+aaL()+"ben",vec2(160,232+170))
  343. CP:egpAlign(22,0,1)
  344. CP:egpFont(22,"Courier New",16)
  345.  
  346. }
  347.  
  348. if(clk("drawCpSettings")){
  349.  
  350. SC = 2
  351.  
  352. CP:egpClear()
  353.  
  354. CP:egpBox(1,vec2(256,460),vec2(512,920))
  355. CP:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
  356.  
  357. CP:egpBox(2,vec2(256,256),vec2(512,512))
  358. CP:egpColor(2,45,45,45,220)
  359.  
  360. CP:egpBox(3,vec2(256,136),vec2(250,40))
  361. CP:egpColor(3,237,234,255,255)
  362.  
  363. CP:egpText(4,"- S T Y L E -",vec2(256,136))
  364. CP:egpAlign(4,1,1)
  365. CP:egpFont(4,"Courier New",22)
  366. CP:egpColor(4,0,0,0,255)
  367.  
  368. CP:egpBox(5,vec2(256,291),vec2(240,270))
  369. CP:egpColor(5,15,15,15,200)
  370.  
  371. CP:egpBox(6,vec2(256,190),vec2(226,40))
  372. CP:egpColor(6,19,19,19,150)
  373.  
  374. CP:egpBox(7,vec2(168,190),vec2(30,30))
  375. CP:egpMaterial(7,"data/stavox/images/mdicons_128_accessible.png")
  376.  
  377. CP:egpBox(8,vec2(220,190),vec2(30,30))
  378. CP:egpMaterial(8,"data/stavox/images/misc_icon-options.png")
  379. CP:egpColor(8,50,141,194,255)
  380.  
  381. CP:egpBox(9,vec2(278,190),vec2(36,36))
  382. CP:egpMaterial(9,"data/stavox/images/mdicons_128_trending_up.png")
  383.  
  384. CP:egpBox(10,vec2(340,190),vec2(30,30))
  385. CP:egpMaterial(10,"data/stavox/images/mdicons_128_playlist_add_check.png")
  386.  
  387. CP:egpBox(11,vec2(164,236),vec2(30,30))
  388. CP:egpColor(11,5,5,5,200)
  389.  
  390. CP:egpBox(12,vec2(271,236),vec2(184,30))
  391. CP:egpColor(12,10,10,10,150)
  392.  
  393. CP:egpBox(13,vec2(164,236),vec2(20,20))
  394. CP:egpMaterial(13,"data/stavox/images/mdicons_128_account_balance_wallet.png")
  395.  
  396. CP:egpText(14,moneyFormat(Profit)+" "+Currency,vec2(271,236))
  397. CP:egpAlign(14,1,1)
  398. CP:egpFont(14,"Courier new",16)
  399.  
  400. #Setting 2
  401.  
  402. CP:egpBox(15,vec2(164,236+40),vec2(30,30))
  403. CP:egpColor(15,5,5,5,200)
  404.  
  405. CP:egpBox(16,vec2(271,236+40),vec2(184,30))
  406. CP:egpColor(16,10,10,10,150)
  407.  
  408. CP:egpBox(17,vec2(164,236+40),vec2(20,20))
  409. CP:egpMaterial(17,"data/stavox/images/mdicons_128_style.png")
  410.  
  411. CP:egpText(18,Rabat+" %",vec2(271,236+40))
  412. CP:egpAlign(18,1,1)
  413. CP:egpFont(18,"Courier new",16)
  414.  
  415. #Setting 3
  416.  
  417. CP:egpBox(19,vec2(164,236+80),vec2(30,30))
  418. CP:egpColor(19,5,5,5,200)
  419.  
  420. CP:egpBox(20,vec2(271,236+80),vec2(184,30))
  421. CP:egpColor(20,10,10,10,150)
  422.  
  423. CP:egpBox(21,vec2(164,236+80),vec2(20,20))
  424. CP:egpMaterial(21,"data/stavox/images/mdicons_32_monetization_on.png")
  425.  
  426. CP:egpText(22,Currency,vec2(271,236+80))
  427. CP:egpAlign(22,1,1)
  428. CP:egpFont(22,"Courier new",16)
  429.  
  430. #Setting 4
  431.  
  432. CP:egpBox(23,vec2(164,236+120),vec2(30,30))
  433. CP:egpColor(23,5,5,5,200)
  434.  
  435. CP:egpBox(24,vec2(271,236+120),vec2(184,30))
  436. CP:egpColor(24,10,10,10,150)
  437.  
  438. CP:egpBox(25,vec2(164,236+120),vec2(20,20))
  439. CP:egpMaterial(25,"data/stavox/images/mdicons_128_block.png")
  440.  
  441. CP:egpText(26,"25.000 $",vec2(271,236+120))
  442. CP:egpAlign(26,1,1)
  443. CP:egpFont(26,"Courier new",16)
  444.  
  445. #Setting 5
  446.  
  447. CP:egpBox(27,vec2(164,236+160),vec2(30,30))
  448. CP:egpColor(27,5,5,5,200)
  449.  
  450. CP:egpBox(28,vec2(271,236+160),vec2(184,30))
  451. CP:egpColor(28,10,10,10,150)
  452.  
  453. CP:egpBox(29,vec2(164,236+160),vec2(20,20))
  454. CP:egpMaterial(29,"data/stavox/images/mdicons_128_backspace.png")
  455.  
  456. CP:egpText(30,"Force logout",vec2(271,236+160))
  457. CP:egpAlign(30,1,1)
  458. CP:egpFont(30,"Courier new",16)
  459.  
  460. }
  461.  
  462.  
  463.  
  464.  
  465. if(clk("reg")){
  466. S = 30
  467. E:egpBox(31,vec2(256,256),vec2(512,180))
  468. E:egpColor(31,15,15,15,240)
  469.  
  470. E:egpBox(32,vec2(256,220),vec2(100,100))
  471. E:egpMaterial(32,"data/stavox/images/mdicons_128_check_circle.png")
  472. E:egpColor(32,39, 174, 96,255)
  473.  
  474. E:egpText(33,"Stort tak for dit k"+oe()+"b af v"+aa()+"ben!",vec2(256,284))
  475. E:egpAlign(33,1,1)
  476. E:egpFont(33,"Courier New",20)
  477.  
  478. E:egpText(34,"Dine v"+aa()+"ben bliver udleveret",vec2(256,300))
  479. E:egpAlign(34,1,1)
  480. E:egpFont(34,"Courier New",20)
  481. timer("drawLine",200)
  482. }
  483. if(clk("drawLine")){
  484. E:egpBox(35,vec2(256,345),vec2(86,1))
  485. timer("drawLine2",300)
  486. }
  487. if(clk("drawLine2")){
  488. E:egpBox(35,vec2(256,345),vec2(172,1))
  489. timer("drawLine3",200)
  490. }
  491. if(clk("drawLine3")){
  492. E:egpBox(35,vec2(256,345),vec2(258,1))
  493. timer("drawLine4",100)
  494. }
  495. if(clk("drawLine4")){
  496. E:egpBox(35,vec2(256,345),vec2(344,1))
  497. timer("drawLine5",100)
  498. }
  499. if(clk("drawLine5")){
  500. E:egpBox(35,vec2(256,345),vec2(430,1))
  501. timer("drawLine6",100)
  502. }
  503. if(clk("drawLine6")){
  504. E:egpBox(35,vec2(256,345),vec2(512,1))
  505. timer("drawStart",1000)
  506. }
  507.  
  508. if(clk("cancelreg")){
  509. E:egpBox(31,vec2(256,256),vec2(512,180))
  510. E:egpColor(31,15,15,15,240)
  511.  
  512. E:egpBox(32,vec2(256,220),vec2(100,100))
  513. E:egpMaterial(32,"data/stavox/images/mdicons_128_cancel.png")
  514. E:egpColor(32,192, 57, 43,255)
  515.  
  516. E:egpText(33,"Din ordrer blev afvist!",vec2(256,284))
  517. E:egpAlign(33,1,1)
  518. E:egpFont(33,"Courier New",20)
  519.  
  520. E:egpText(34,"P"+aa()+" gensyn :)",vec2(256,300))
  521. E:egpAlign(34,1,1)
  522. E:egpFont(34,"Courier New",20)
  523. timer("drawLine",200)
  524. }
  525.  
  526. if(clk("drawCloseSign")){
  527. Close = 1,
  528. E:egpBox(9,vec2(286,200),vec2(1,150))
  529. E:egpAngle(9,25)
  530. E:egpColor(9,224, 224, 215,255)
  531.  
  532. E:egpBox(10,vec2(238,200),vec2(1,150))
  533. E:egpAngle(10,-15)
  534.  
  535. E:egpCircle(11,vec2(256,136),vec2(8,8))
  536. E:egpColor(11,149, 165, 166,255)
  537.  
  538. E:egpRoundedBox(12,vec2(266,290),vec2(170,70))
  539. E:egpAngle(12,8)
  540. E:egpColor(12,224, 224, 215,255)
  541.  
  542. E:egpRoundedBoxOutline(13,vec2(266,290),vec2(160,60))
  543. E:egpAngle(13,8)
  544. E:egpColor(13,0,0,0,255)
  545.  
  546. E:egpBox(14,vec2(196,278),vec2(12,12))
  547. E:egpMaterial(14,"data/stavox/images/mdicons_128_cancel.png")
  548. E:egpColor(14,149, 165, 166,255)
  549.  
  550. E:egpBox(15,vec2(329,259),vec2(12,12))
  551. E:egpMaterial(15,"data/stavox/images/mdicons_128_cancel.png")
  552. E:egpColor(15,149, 165, 166,255)
  553.  
  554. E:egpText(16,"SORRY WE'RE",vec2(264,280))
  555. E:egpAlign(16,1,1)
  556. E:egpFont(16,"Courier New",20)
  557. E:egpColor(16,25,25,25,255)
  558. E:egpAngle(16,8)
  559.  
  560. E:egpText(17,"CLOSED",vec2(268,298))
  561. E:egpAlign(17,1,1)
  562. E:egpFont(17,"Courier New",26)
  563. E:egpColor(17,25,25,25,255)
  564. E:egpAngle(17,8)
  565.  
  566. timer("redIcon",2000)
  567. }
  568. if(clk("redIcon")){
  569. CP:egpRemove(7)
  570. CP:egpBox(100,vec2(168,190),vec2(30,30))
  571. CP:egpMaterial(100,"data/stavox/images/mdicons_128_lock_outline.png")
  572. CP:egpColor(100,192, 57, 43,255)
  573. }
  574.  
  575. if(clk("NoWepsOnStock")){
  576. ST = 55
  577. E:egpBox(55,vec2(256,256),vec2(512,180))
  578. E:egpColor(55,15,15,15,240)
  579.  
  580. E:egpBox(56,vec2(256,220),vec2(100,100))
  581. E:egpMaterial(56,"data/stavox/images/mdicons_128_search.png")
  582. E:egpColor(56,250, 152, 58,255)
  583.  
  584. E:egpText(57,"S"+oeL()+"GER EFTER V"+aaL()+"BEN...",vec2(256,294))
  585. E:egpAlign(57,1,1)
  586. E:egpFont(57,"Courier New",26)
  587.  
  588. timer("drawRunLine",200)
  589. }
  590. if(clk("drawRunLine")){
  591. ST = 55
  592. E:egpBox(59,vec2(256,345),vec2(86,1))
  593. timer("drawRunLine1",300)
  594. }
  595. if(clk("drawRunLine1")){
  596. ST = 55
  597. E:egpBox(59,vec2(256,345),vec2(172,1))
  598. timer("drawRunLine2",200)
  599. }
  600. if(clk("drawRunLine2")){
  601. ST = 55
  602. E:egpBox(59,vec2(256,345),vec2(258,1))
  603. timer("drawRunLine3",100)
  604. }
  605. if(clk("drawRunLine3")){
  606. ST = 55
  607. E:egpBox(59,vec2(256,345),vec2(344,1))
  608. timer("drawRunLine4",100)
  609. }
  610. if(clk("drawRunLine4")){
  611. ST = 55
  612. E:egpBox(59,vec2(256,345),vec2(430,1))
  613. timer("drawRunLine5",100)
  614. }
  615. if(clk("drawRunLine5")){
  616. ST = 55
  617. E:egpBox(59,vec2(256,345),vec2(512,1))
  618. timer("SayNoWeps",1000)
  619. }
  620.  
  621. if(clk("SayNoWeps")){
  622. ST = 55
  623. E:egpMaterial(56,"data/stavox/images/mdicons_128_cancel.png")
  624. E:egpColor(56,192, 57, 43,255)
  625.  
  626. E:egpSetText(57,"INGEN V"+aaL()+"BEN BLEV FUNDET...")
  627.  
  628. E:egpText(60,"PR"+oeL()+"V IGEN OM LIDT!",vec2(256,314))
  629. E:egpAlign(60,1,1)
  630. E:egpFont(60,"Courier New",20)
  631. timer("drawStart",2000)
  632. }
  633.  
  634.  
  635.  
  636. #-------------------------------------------------- LOGIN --------------------------------------------------#
  637. if(S == 1 & ops()<100){
  638. if(~U & U){
  639. if(shipmentInStock()){
  640. if(E:egpButton(6,U)){timer("Velkommen",200) Velkommen=" " FinalVelkommen="Velkommen":explode("") CurUser = U E:egpRemove(6) E:egpRemove(7) timer("CurUserDistance",5000)
  641. }
  642. }else{
  643. timer("NoWepsOnStock",200)
  644. }
  645. }
  646. }
  647.  
  648.  
  649.  
  650.  
  651. if(S == 2 & ops()<100 & CurUser == U){
  652. if(~U & U){
  653. if(E:egpButton(30,U)){timer("drawStart",200) CurUser = noentity()}
  654.  
  655. }
  656. }
  657.  
  658.  
  659. if(clk("Velkommen")&S==1){
  660. if(Velkommen:length()<=FinalVelkommen:count())
  661. {
  662. Velkommen=Velkommen+FinalVelkommen[Velkommen:length(),string]
  663. E:egpSetText(8,Velkommen:sub(2))
  664. timer("Velkommen",150)
  665. }else{
  666. timer("drawShop",100)}
  667. }
  668.  
  669. #-------------------------------------------------- DRAW WEP SYSTEM --------------------------------------------------#
  670. if(S == 2 & ops()<100 & CurUser == U){
  671.  
  672. #--------Betaling
  673. if(E:egpButton(26,U)&Price>0){moneyRequest(CurUser,Price,"You style")}
  674.  
  675. #--------Choose weps
  676. #----1
  677. elseif(E:egpButton(6,U)&R1:isShipment()){
  678. if(W1 == 0){
  679. Price = Price+R1:wepPrice() W1 = 1 E:egpBox(100,vec2(364,136),vec2(16,16)) E:egpMaterial(100,ChooseIcon)
  680. }else{Price = Price-R1:wepPrice() W1 = 0 E:egpRemove(100) }
  681. E:egpSetText(29,moneyFormat(Price)+Currency)}
  682. #----2
  683. elseif(E:egpButton(8,U)&R2:isShipment()){
  684. if(W2 == 0){
  685. Price = Price+R2:wepPrice() W2 = 1 E:egpBox(101,vec2(364,136+30),vec2(16,16)) E:egpMaterial(101,ChooseIcon)
  686. }else{Price = Price-R2:wepPrice() W2 = 0 E:egpRemove(101) }
  687. E:egpSetText(29,moneyFormat(Price)+Currency)}
  688. #----3
  689. elseif(E:egpButton(10,U)&R3:isShipment()){
  690. if(W3 == 0){
  691. Price = Price+R3:wepPrice() W3 = 1 E:egpBox(102,vec2(364,136+60),vec2(16,16)) E:egpMaterial(102,ChooseIcon)
  692. }else{Price = Price-R3:wepPrice() W3 = 0 E:egpRemove(102) }
  693. E:egpSetText(29,moneyFormat(Price)+Currency)}
  694. #----4
  695. elseif(E:egpButton(12,U)&R4:isShipment()){
  696. if(W4 == 0){
  697. Price = Price+R4:wepPrice() W4 = 1 E:egpBox(103,vec2(364,136+90),vec2(16,16)) E:egpMaterial(103,ChooseIcon)
  698. }else{Price = Price-R4:wepPrice() W4 = 0 E:egpRemove(103) }
  699. E:egpSetText(29,moneyFormat(Price)+Currency)}
  700. #----5
  701. elseif(E:egpButton(14,U)&R5:isShipment()){
  702. if(W5 == 0){
  703. Price = Price+R5:wepPrice() W5 = 1 E:egpBox(104,vec2(364,136+120),vec2(16,16)) E:egpMaterial(104,ChooseIcon)
  704. }else{Price = Price-R5:wepPrice() W5 = 0 E:egpRemove(104) }
  705. E:egpSetText(29,moneyFormat(Price)+Currency)}
  706. #----6
  707. elseif(E:egpButton(16,U)&R6:isShipment()){
  708. if(W6 == 0){
  709. Price = Price+R6:wepPrice() W6 = 1 E:egpBox(105,vec2(364,136+150),vec2(16,16)) E:egpMaterial(105,ChooseIcon)
  710. }else{Price = Price-R6:wepPrice() W6 = 0 E:egpRemove(105) }
  711. E:egpSetText(29,moneyFormat(Price)+Currency)}
  712. #----7
  713. elseif(E:egpButton(18,U)&R7:isShipment()){
  714. if(W7 == 0){
  715. Price = Price+R7:wepPrice() W7 = 1 E:egpBox(106,vec2(364,136+180),vec2(16,16)) E:egpMaterial(106,ChooseIcon)
  716. }else{Price = Price-R7:wepPrice() W7 = 0 E:egpRemove(106) }
  717. E:egpSetText(29,moneyFormat(Price)+Currency)}
  718. #----8
  719. elseif(E:egpButton(20,U)&R8:isShipment()){
  720. if(W8 == 0){
  721. Price = Price+R8:wepPrice() W8 = 1 E:egpBox(107,vec2(364,136+210),vec2(16,16)) E:egpMaterial(107,ChooseIcon)
  722. }else{Price = Price-R8:wepPrice() W8 = 0 E:egpRemove(107) }
  723. E:egpSetText(29,moneyFormat(Price)+Currency)}
  724. }
  725.  
  726. Onlinevaaben = R1:shipmentAmount() + R2:shipmentAmount() + R3:shipmentAmount() + R4:shipmentAmount() + R5:shipmentAmount() + R6:shipmentAmount() + R7:shipmentAmount() + R8:shipmentAmount()
  727.  
  728. if(moneyNoClk("You style")){
  729. timer("cancelreg",200)
  730. }
  731.  
  732.  
  733. if(moneyClk("You style")){
  734. timer("reg",200)
  735. timer("goweps",1000)
  736. timer("updateStatsOnCp",2000)
  737. Seneste = moneyClkPlayer():name()
  738. }
  739.  
  740. if(clk("goweps")){
  741. if(W1==1){R1:ejectWeapon() Count++ Tjent+=Profit Omsat+=R1:wepPrice()}
  742. if(W2==1){R2:ejectWeapon() Count++ Tjent+=Profit Omsat+=R2:wepPrice()}
  743. if(W3==1){R3:ejectWeapon() Count++ Tjent+=Profit Omsat+=R3:wepPrice()}
  744. if(W4==1){R4:ejectWeapon() Count++ Tjent+=Profit Omsat+=R4:wepPrice()}
  745. if(W5==1){R5:ejectWeapon() Count++ Tjent+=Profit Omsat+=R5:wepPrice()}
  746. if(W6==1){R6:ejectWeapon() Count++ Tjent+=Profit Omsat+=R6:wepPrice()}
  747. if(W7==1){R7:ejectWeapon() Count++ Tjent+=Profit Omsat+=R7:wepPrice()}
  748. if(W8==1){R8:ejectWeapon() Count++ Tjent+=Profit Omsat+=R8:wepPrice()}
  749. }
  750.  
  751. if(clk("updateStatsOnCp")){
  752. CP:egpSetText(12,"Oms"+ae()+"tning: "+moneyFormat(Omsat)+" "+Currency)
  753. CP:egpSetText(14,"Overskud: "+moneyFormat(Tjent)+" "+Currency)
  754. CP:egpSetText(16,"V"+aa()+"ben solgt: "+Count+" pcs.")
  755. CP:egpSetText(18,"V"+aa()+"ben online: "+Onlinevaaben+" pcs.")
  756. CP:egpSetText(20,"Senest kunde: "+Seneste)
  757. }
  758.  
  759. #-------------------------------------CONTROL PANEL-------------------------------------#
  760. if(~CU & CU:keyUse() & CU == owner() & ops()<100){
  761.  
  762. if(SC == 1 & ops()<100){
  763. if(CP:egpButton(8,CU)){timer("drawCpSettings",200) }
  764. if(CP:egpButton(7,CU)){timer("drawCloseSign",200) CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_outline.png") CP:egpSetText(22,"Status: Lukket") CP:egpColor(7,50,141,194,255) hint("Du lukkede butikken",4000) S = 5}
  765. if(CP:egpButton(100,CU)){timer("drawStart",200) timer("refresh",200) Close == 0}
  766. if(CP:egpButton(10,CU)){timer("drawHintWeps",200)}
  767. }
  768.  
  769. if(SC == 2 & ops()<100){
  770. if(CP:egpButton(9,CU)){timer("drawCpStats",200) timer("removeLogoToClose",200) }
  771. if(CP:egpButton(28,CU)){ timer("drawFlText",200)}
  772. if(CP:egpButton(7,CU)){hint("HANDICAP LOGO",4000)}
  773. if(CP:egpButton(10,CU)){timer("drawHintWeps",200)}
  774. }
  775. }
  776. if(clk("removeLogoToClose")){
  777. if(Close == 1){
  778. CP:egpRemove(7) CP:egpBox(100,vec2(168,190),vec2(30,30))
  779. CP:egpMaterial(100,"data/stavox/images/mdicons_128_lock_outline.png")
  780. CP:egpColor(100,192, 57, 43,255)
  781. }elseif(Close == 0){
  782. CP:egpBox(7,vec2(168,190),vec2(30,30))
  783. CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_open.png")
  784. CP:egpColor(7,255, 255, 255,255)
  785. }
  786.  
  787.  
  788. }
  789.  
  790. if(clk("drawFlText")){
  791. CP:egpSetText(30,"I do that!")
  792. hint("Loggede "+CurUser:name()+" ud af (S T Y L E)",4000)
  793. timer("drawForText",2000)
  794. CurUser = noentity()
  795. timer("drawStart",200)
  796. }
  797. if(clk("drawForText")){
  798. CP:egpSetText(30,"Force logout")
  799. }
  800.  
  801. if(clk("refresh")& SC == 1){
  802. Close = 0
  803. CP:egpRemove(100)
  804. CP:egpSetText(22,"Status: "+aaL()+"ben")
  805. CP:egpBox(7,vec2(168,190),vec2(30,30))
  806. CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_open.png")
  807. CP:egpColor(7,50,141,194,255)
  808. timer("setColorBack",2000)
  809. }
  810.  
  811. if(clk("setColorBack")){
  812. CP:egpColor(7,255,255,255,255)
  813. }
  814.  
  815. #Profit
  816. if(chatClk(owner())) {
  817. if(CP:egpButton(12, lastSpoke())) {
  818. if(lastSaid():toNumber() > 0 | lastSaid():toNumber() < 0 | lastSaid() == "0") {
  819. Profit = lastSaid():toNumber()
  820. CP:egpSetText(14,moneyFormat(Profit)+" "+Currency)
  821. hint("Profit sat til "+moneyFormat(Profit),4000)
  822. hideChat(1)
  823. }
  824. }elseif(CP:egpButton(16, lastSpoke())) {
  825. if(lastSaid():toNumber() > 0 | lastSaid():toNumber() < 0 | lastSaid() == "0") {
  826. Rabat = lastSaid():toNumber()
  827. CP:egpSetText(18,Rabat+" %")
  828. hint("Rabat sat til "+Rabat+" %",4000)
  829. hideChat(1)
  830. }
  831. }elseif(CP:egpButton(20, lastSpoke())) {
  832. Currency = lastSaid()
  833. CP:egpSetText(22,Currency)
  834. hint("Valuta sat til "+Currency,4000)
  835. hideChat(1)
  836. }
  837.  
  838. }
  839.  
  840. if(clk("drawHintWeps")){
  841. CP:egpColor(10,50,141,194,255)
  842. if(R1:isShipment()){hint("Plads 1 | Wep: "+R1:wepName()+" Pris: "+moneyFormat(R1:wepPrice())+" "+Currency+" Antal: "+R1:shipmentAmount(),8000)
  843. }else{
  844. hint("Plads 1 | Intet shipment p"+aa()+"sat!",8000)
  845. }
  846.  
  847. if(R2:isShipment()){hint("Plads 2 | Wep: "+R2:wepName()+" Pris: "+moneyFormat(R2:wepPrice())+" "+Currency+" Antal: "+R2:shipmentAmount(),8000)
  848. }else{
  849. hint("Plads 2 | Intet shipment p"+aa()+"sat!",8000)
  850. }
  851.  
  852. if(R3:isShipment()){hint("Plads 3 | Wep: "+R3:wepName()+" Pris: "+moneyFormat(R3:wepPrice())+" "+Currency+" Antal: "+R3:shipmentAmount(),8000)
  853. }else{
  854. hint("Plads 3 | Intet shipment p"+aa()+"sat!",8000)
  855. }
  856.  
  857. if(R4:isShipment()){hint("Plads 4 | Wep: "+R4:wepName()+" Pris: "+moneyFormat(R4:wepPrice())+" "+Currency+" Antal: "+R4:shipmentAmount(),8000)
  858. }else{
  859. hint("Plads 4 | Intet shipment p"+aa()+"sat!",8000)
  860. }
  861.  
  862. if(R5:isShipment()){hint("Plads 5 | Wep: "+R5:wepName()+" Pris: "+moneyFormat(R5:wepPrice())+" "+Currency+" Antal: "+R5:shipmentAmount(),8000)
  863. }else{
  864. hint("Plads 5 | Intet shipment p"+aa()+"sat!",8000)
  865. }
  866.  
  867. if(R6:isShipment()){hint("Plads 6 | Wep: "+R6:wepName()+" Pris: "+moneyFormat(R6:wepPrice())+" "+Currency+" Antal: "+R6:shipmentAmount(),8000)
  868. }else{
  869. hint("Plads 6 | Intet shipment p"+aa()+"sat!",8000)
  870. }
  871.  
  872. if(R7:isShipment()){hint("Plads 7 | Wep: "+R7:wepName()+" Pris: "+moneyFormat(R7:wepPrice())+" "+Currency+" Antal: "+R7:shipmentAmount(),8000)
  873. }else{
  874. hint("Plads 7 | Intet shipment p"+aa()+"sat!",8000)
  875. }
  876.  
  877. if(R8:isShipment()){hint("Plads 8 | Wep: "+R8:wepName()+" Pris: "+moneyFormat(R8:wepPrice())+" "+Currency+" Antal: "+R8:shipmentAmount(),8000)
  878. }else{
  879. hint("Plads 8 | Intet shipment p"+aa()+"sat!",8000)
  880. }
  881. timer("resetWepPrintColor",8000)
  882. }
  883. if(clk("resetWepPrintColor")){
  884. CP:egpColor(10,255,255,255,255)
  885. }
  886.  
  887. if(chatClk(owner())) {
  888. if(lastSaid():find("!bl") | lastSaid():find("!wl")) {
  889. local Mode = lastSaid():find("!bl") ? "blacklisted" : "whitelisted",
  890. local Txt = lastSaid():sub(5, lastSaid():length()),
  891. local Ply = findPlayerBySteamID(Txt) ? findPlayerBySteamID(Txt) : findPlayerByName(Txt),
  892.  
  893. if(Ply:isValid() & Ply:isPlayer() & lastSaid():lower():explode(" "):string(2) != "" & Blacklisted[Ply:steamID(),number] != lastSaid():find("!bl") ? 1 : 0) {
  894. Blacklisted[Ply:steamID(),number] = lastSaid():find("!bl") ? 1 : 0,
  895.  
  896. hideChat(1),
  897.  
  898. printColor(vec(255,255,255),"[ ",vec(59,91,161),"ICEBOX",vec(255,255,255)," ] "+Ply:name()+" ("+Ply:steamID()+") blev "+Mode+".")
  899. }
  900. else {
  901. hideChat(1),
  902.  
  903. printColor(vec(255,255,255),"[ ",vec(59,91,161),"ICEBOX",vec(255,255,255)," ] Ugyldig spiller: "+Txt)
  904. }
  905. }
  906. }
  907.  
  908.  
  909.  
  910. #-------------------------------------------------------------------------------------#
  911. #--- Log ud auto // For langt vaek ---#
  912. if(clk("CurUserDistance")){
  913. if(S>1 & ops()<100){
  914. if(CurUser:pos():distance(E:entity():pos())>75){timer("drawStart",250) CurUser = noentity()
  915. }
  916. }
  917. timer("CurUserDistance",3000)
  918. }
  919.  
  920.  
  921.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement