Advertisement
wib0902

Untitled

Dec 30th, 2021
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.35 KB | None | 0 0
  1. @name Mountain Gunshop | Re-Coded | Version 4.00
  2. @inputs E:wirelink U:entity CP:wirelink CU:entity [R1,R2,R3,R4,R5,R6,R7,R8]:entity
  3. @outputs CustomerDoorBlock
  4. @persist [S,S1,Profit,Rabat,PayPrice,Count,Omsat,Tjent,Onlinevaaben,W1,W2,W3,W4,W5,W6,W7,W8,ValueProfit,Q,W,T,NoBuyer]:number [FinalVelkommen, FinalName]:array [CurUser]:entity
  5. @persist [OwnerOfGunshop,ShopName,SubName,Velkommen,Name,Seneste,Status,LastBuyer]:string
  6. @trigger
  7. if(first()){
  8.  
  9. # - - SETTINGS - - #
  10. Profit = 0
  11. Rabat = 0
  12. ShopName = "Mountain"
  13. Subname = "Weapon shop"
  14. Status = ""+aaL()+"ben" #Dont Touch this!!!!
  15. Q = 0 #Dont Touch this!!!!
  16. W = 1 #Dont Touch this!!!!
  17. T = 1 #Dont Touch this!!!!
  18. ###################
  19.  
  20. function number wirelink:egpButton(Idx:number,Ply:entity)
  21. {
  22. TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
  23. BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
  24. Cur = This:egpCursor(Ply) return inrange(Cur, TL, BR) exit()
  25. }
  26. function string moneyFormat(M:number)
  27. {
  28. local Q = M < 1000000 # No need to do math?
  29. local P = Q ? "^(-?%d+)(%d%d%d)" : "^(-?%d+)(%d%d%d)(%d%d%d)"
  30. local N = Q ? "%1.%2" : "%1.%2.%3"
  31. return M:toString():replaceRE(P, N) #Regular Expressions // Yaay
  32. }
  33. function number entity:wepPrice()
  34. {
  35. if(This:isShipment()){
  36. O = (This:shipmentPrice()*Rabat)/100
  37. return round(This:shipmentPrice()+Profit-O)
  38. }else{return 0}
  39. }
  40.  
  41. function string entity:wepName()
  42. {
  43. if(This:isShipment()){
  44. return This:shipmentName()
  45. }else{return "Udsolgt"}
  46. }
  47. function number shipmentInStock()
  48. {
  49. return (R1:isShipment() || R2:isShipment() || R3:isShipment() || R4:isShipment() || R5:isShipment() || R6:isShipment() || R7:isShipment() || R8:isShipment())
  50. }
  51. function string returnTime()
  52. {
  53. SSec=time("sec")
  54. MMin=time("min")
  55. HHour=time("hour")+1
  56. if(SSec<10){Sec="0"+SSec}
  57. else{Sec=""+SSec}
  58. if(MMin<10){Min="0"+MMin}
  59. else{Min=""+MMin}
  60. if(HHour<10){Hour="0"+HHour} elseif(HHour==24){Hour="00"}
  61. elseif(HHour==25){Hour="01"} elseif(HHour==26){Hour="02"}
  62. elseif(HHour==27){Hour="03"} elseif(HHour==28){Hour="04"}
  63. elseif(HHour==29){Hour="05"} elseif(HHour==30){Hour="06"}
  64. else{Hour=""+HHour}
  65. Tid=Hour+":"+Min
  66. return Tid
  67. }
  68. function void addCursor()
  69. {
  70. 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)))
  71. E:egpColor(999,0,0,0,200)
  72. E:egpParentToCursor(999)
  73. }
  74. function void addCursor1()
  75. {
  76. CP:egpPoly(999,array(vec2(0,0),vec2(0,15),vec2(3,12),vec2(5,15),vec2(7,15),vec2(6,11),vec2(10,10)))
  77. CP:egpColor(999,0,0,0,200)
  78. CP:egpParentToCursor(999)
  79. }
  80.  
  81. ValueProfit = 359
  82.  
  83. runOnChat(1)
  84. timer("drawHome",200)
  85. timer("drawCpDash",1000)
  86. stoptimer("CurUserDistance")
  87. }
  88.  
  89.  
  90. if(clk("drawHome")){
  91. S = 1
  92. Y = 25
  93. E:egpClear()
  94.  
  95. E:egpBox(1,vec2(256,256),vec2(512,512))
  96.  
  97. E:egpBox(2,vec2(256,460),vec2(512,920))
  98. E:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  99. E:egpAlpha(2,250)
  100. E:egpColor(2,vec(74,119,143))
  101.  
  102. E:egpBox(3,vec2(256,256),vec2(512,512))
  103. E:egpMaterial(3,"gui/gradient_down")
  104. E:egpColor(3,vec4(99,136,157,100))
  105.  
  106. E:egpText(4,ShopName,vec2(256,280))
  107. E:egpAlign(4,1,1)
  108. E:egpSize(4,60)
  109. E:egpFont(4,"Courier New")
  110.  
  111. E:egpBox(5,vec2(256,300),vec2(300,1))
  112.  
  113. E:egpText(6,Subname,vec2(256,315))
  114. E:egpAlign(6,1,1)
  115. E:egpSize(6,32)
  116. E:egpFont(6,"Courier New")
  117.  
  118. E:egpPoly(8,array(vec2(280,136-Y),vec2(280,157-Y),vec2(247,223-Y),vec2(242,213-Y)))
  119. E:egpPoly(9,array(vec2(280,136-Y),vec2(280,157-Y),vec2(337,273-Y),vec2(352,281-Y)))
  120. E:egpPoly(10,array(vec2(337,273-Y),vec2(352,281-Y),vec2(294,281-Y),vec2(290,273-Y)))
  121. E:egpPoly(11,array(vec2(222,273-Y),vec2(218,281-Y),vec2(159,281-Y),vec2(174,273-Y)))
  122. E:egpPoly(12,array(vec2(159,281-Y),vec2(174,273-Y),vec2(207,207-Y),vec2(207,185-Y)))
  123. E:egpPoly(13,array(vec2(207,207-Y),vec2(207,185-Y),vec2(256,282-Y),vec2(256,303-Y)))
  124.  
  125. if(Rabat>0){
  126. E:egpBox(50,vec2(472,40),vec2(170,42))
  127. E:egpAngle(50,-45)
  128. E:egpColor(50,50,141,194,255)
  129.  
  130. E:egpText(51,"Spar "+Rabat+"%",vec2(472,40))
  131. E:egpAlign(51,1,1)
  132. E:egpFont(51,"Courier New",20)
  133. E:egpAngle(51,-45)
  134. }
  135.  
  136. stoptimer("CurUserDistance")
  137. CurUser = noentity() W1=0 W2=0 W3=0 W4=0 W5=0 W6=0 W7=0 W8=0 PayPrice = 0
  138. addCursor()
  139. }
  140.  
  141. if(clk("drawSignInHey")){
  142.  
  143. S = 2
  144.  
  145. E:egpClear()
  146.  
  147. E:egpBox(1,vec2(256,256),vec2(512,512))
  148.  
  149. E:egpBox(2,vec2(256,460),vec2(512,920))
  150. E:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  151. E:egpAlpha(2,250)
  152. E:egpColor(2,vec(74,119,143))
  153.  
  154. E:egpBox(3,vec2(256,256),vec2(512,512))
  155. E:egpMaterial(3,"gui/gradient_down")
  156. E:egpColor(3,vec4(99,136,157,100))
  157.  
  158. E:egpCircle(4,vec2(256,170),vec2(100,100))
  159. E:egpColor(4,25,25,25,200)
  160.  
  161. E:egpBox(5,vec2(256,170),vec2(100,100))
  162. E:egpMaterial(5,"data/stavox/images/mdicons_128_person.png")
  163.  
  164. E:egpBox(6,vec2(256,383),vec2(34,300))
  165. E:egpColor(6,25,25,25,150)
  166. E:egpMaterial(6,"gui/gradient_down")
  167. E:egpAngle(6,90)
  168.  
  169. E:egpBox(7,vec2(256,400),vec2(1,300))
  170. E:egpColor(7,0,0,0,200)
  171. E:egpMaterial(7,"gui/gradient_down")
  172. E:egpAngle(7,90)
  173.  
  174. Velkommen = "-"
  175. E:egpText(8,Velkommen,vec2(256,383))
  176. E:egpAlign(8,1,1)
  177. E:egpFont(8,"Courier New",20)
  178. timer("Velkommen",100)
  179.  
  180. }
  181.  
  182. if(clk("drawShop")){
  183.  
  184. S = 3
  185.  
  186. E:egpClear()
  187.  
  188. #BACKGROUND
  189. E:egpBox(1,vec2(256,256),vec2(512,512))
  190.  
  191. E:egpBox(2,vec2(256,460),vec2(512,920))
  192. E:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  193. E:egpAlpha(2,250)
  194. E:egpColor(2,vec(74,119,143))
  195.  
  196. E:egpBox(3,vec2(256,256),vec2(512,512))
  197. E:egpMaterial(3,"gui/gradient_down")
  198. E:egpColor(3,vec4(99,136,157,100))
  199.  
  200. E:egpBoxOutline(4,vec2(256,256),vec2(325,514))
  201. E:egpColor(4,vec4(0,0,0,200))
  202.  
  203. E:egpBox(5,vec2(256,256),vec2(323,514))
  204. E:egpColor(5,vec4(25,25,25,159))
  205.  
  206. ##Logud knap
  207. E:egpBox(6,vec2(111,17),vec2(34,34))
  208. E:egpColor(6,vec4(45,45,45,125))
  209.  
  210. E:egpBox(7,vec2(111,17),vec2(1,34))
  211. E:egpAngle(7,45)
  212.  
  213. E:egpBox(8,vec2(111,17),vec2(1,34))
  214. E:egpAngle(8,-45)
  215.  
  216. E:egpText(9,"Mountain",vec2(256,65))
  217. E:egpAlign(9,1,1)
  218. E:egpSize(9,50)
  219. E:egpFont(9,"Courier New")
  220.  
  221. E:egpBox(10,vec2(256,85),vec2(250,1))
  222. E:egpColor(10,vec(200,200,200))
  223.  
  224. E:egpText(11,"Weapon shop",vec2(256,100))
  225. E:egpAlign(11,1,1)
  226. E:egpSize(11,32)
  227. E:egpFont(11,"Courier New")
  228.  
  229. ##Betalings knap
  230. E:egpBox(44,vec2(256,500),vec2(325,30))
  231. E:egpColor(44,25,25,25,150)
  232.  
  233. E:egpBox(45,vec2(256,508),vec2(1,318))
  234. E:egpColor(45,vec(50,141,194))
  235. E:egpMaterial(45,"gui/gradient_down")
  236. E:egpAngle(45,90)
  237.  
  238. E:egpText(46,"Select weapons!",vec2(256,496))
  239. E:egpAlign(46,1,1)
  240. E:egpSize(46,16)
  241. E:egpFont(46,"Courier New")
  242.  
  243. E:egpBox(48,vec2(110,496),vec2(20,20))
  244. E:egpMaterial(48,"data/stavox/images/mdicons_128_shopping_basket.png")
  245. addCursor()
  246. timer("box1",325)
  247. }
  248. if(clk("box1")){
  249.  
  250. S = 3
  251. if(R1:isShipment()){
  252. #1.1
  253. E:egpBox(12,vec2(180,190),vec2(140,60))
  254. E:egpColor(12,35,35,35,150)
  255.  
  256. E:egpBox(13,vec2(180,220),vec2(140,1))
  257. E:egpColor(13,50,141,194,150)
  258.  
  259. E:egpText(14,R1:wepName(),vec2(116,186))
  260. E:egpAlign(14,0,1)
  261. E:egpFont(14,"Courier New",20)
  262.  
  263. E:egpText(15,""+moneyFormat(R1:wepPrice())+",-",vec2(116,205))
  264. E:egpAlign(15,0,1)
  265. E:egpFont(15,"Courier New",20)
  266. timer("box2",325)
  267. }
  268. }
  269. if(clk("box2")){
  270. if(R2:isShipment()){
  271. #1.2
  272. E:egpBox(16,vec2(333,190),vec2(140,60))
  273. E:egpColor(16,35,35,35,150)
  274.  
  275. E:egpBox(17,vec2(333,220),vec2(140,1))
  276. E:egpColor(17,50,141,194,150)
  277.  
  278. E:egpText(18,R2:wepName(),vec2(270,186))
  279. E:egpAlign(18,0,1)
  280. E:egpFont(18,"Courier New",20)
  281.  
  282. E:egpText(19,""+moneyFormat(R2:wepPrice())+",-",vec2(270,205))
  283. E:egpAlign(19,0,1)
  284. E:egpFont(19,"Courier New",20)
  285. timer("box3",325)
  286. }
  287. }
  288. if(clk("box3")){
  289. if(R3:isShipment()){
  290. #2.1
  291. E:egpBox(20,vec2(180,262),vec2(140,60))
  292. E:egpColor(20,35,35,35,150)
  293.  
  294. E:egpBox(21,vec2(180,292),vec2(140,1))
  295. E:egpColor(21,50,141,194,150)
  296.  
  297. E:egpText(22,R3:wepName(),vec2(116,259))
  298. E:egpAlign(22,0,1)
  299. E:egpFont(22,"Courier New",20)
  300.  
  301. E:egpText(23,""+moneyFormat(R3:wepPrice())+",-",vec2(116,278))
  302. E:egpAlign(23,0,1)
  303. E:egpFont(23,"Courier New",20)
  304. timer("box4",325)
  305. }
  306. }
  307. if(clk("box4")){
  308. if(R4:isShipment()){
  309. #2.2
  310. E:egpBox(24,vec2(333,262),vec2(140,60))
  311. E:egpColor(24,35,35,35,150)
  312.  
  313. E:egpBox(25,vec2(333,292),vec2(140,1))
  314. E:egpColor(25,50,141,194,150)
  315.  
  316. E:egpText(26,R4:wepName(),vec2(270,259))
  317. E:egpAlign(26,0,1)
  318. E:egpFont(26,"Courier New",20)
  319.  
  320. E:egpText(27,""+moneyFormat(R4:wepPrice())+",-",vec2(270,278))
  321. E:egpAlign(27,0,1)
  322. E:egpFont(27,"Courier New",20)
  323. timer("box5",325)
  324. }
  325. }
  326. if(clk("box5")){
  327. if(R5:isShipment()){
  328. #3.1
  329. E:egpBox(28,vec2(180,334),vec2(140,60))
  330. E:egpColor(28,35,35,35,150)
  331.  
  332. E:egpBox(29,vec2(180,364),vec2(140,1))
  333. E:egpColor(29,50,141,194,150)
  334.  
  335. E:egpText(30,R5:wepName(),vec2(116,332))
  336. E:egpAlign(30,0,1)
  337. E:egpFont(30,"Courier New",20)
  338.  
  339. E:egpText(31,""+R5:wepPrice()+",-",vec2(116,351))
  340. E:egpAlign(31,0,1)
  341. E:egpFont(31,"Courier New",20)
  342. timer("box6",325)
  343. }
  344. }
  345. if(clk("box6")){
  346. if(R6:isShipment()){
  347. #3.2
  348. E:egpBox(32,vec2(333,334),vec2(140,60))
  349. E:egpColor(32,35,35,35,150)
  350.  
  351. E:egpBox(33,vec2(333,364),vec2(140,1))
  352. E:egpColor(33,50,141,194,150)
  353.  
  354. E:egpText(34,R6:wepName(),vec2(270,332))
  355. E:egpAlign(34,0,1)
  356. E:egpFont(34,"Courier New",20)
  357.  
  358. E:egpText(35,""+R6:wepPrice()+",-",vec2(270,351))
  359. E:egpAlign(35,0,1)
  360. E:egpFont(35,"Courier New",20)
  361. timer("box7",325)
  362. }
  363. }
  364. if(clk("box7")){
  365. if(R7:isShipment()){
  366. #4.1
  367. E:egpBox(36,vec2(180,406),vec2(140,60))
  368. E:egpColor(36,35,35,35,150)
  369.  
  370. E:egpBox(37,vec2(180,436),vec2(140,1))
  371. E:egpColor(37,50,141,194,150)
  372.  
  373. E:egpText(38,R7:wepName(),vec2(116,403))
  374. E:egpAlign(38,0,1)
  375. E:egpFont(38,"Courier New",20)
  376.  
  377. E:egpText(39,""+R7:wepPrice()+",-",vec2(116,422))
  378. E:egpAlign(39,0,1)
  379. E:egpFont(39,"Courier New",20)
  380. timer("box8",325)
  381. }
  382. }
  383. if(clk("box8")){
  384. if(R8:isShipment()){
  385. #4.2
  386. E:egpBox(40,vec2(333,406),vec2(140,60))
  387. E:egpColor(40,35,35,35,150)
  388.  
  389. E:egpBox(41,vec2(333,436),vec2(140,1))
  390. E:egpColor(41,50,141,194,150)
  391.  
  392.  
  393. E:egpText(42,R8:wepName(),vec2(270,403))
  394. E:egpAlign(42,0,1)
  395. E:egpFont(42,"Courier New",20)
  396.  
  397. E:egpText(43,""+R8:wepPrice()+",-",vec2(270,422))
  398. E:egpAlign(43,0,1)
  399. E:egpFont(43,"Courier New",20)
  400. }
  401. addCursor()
  402. }
  403.  
  404. if(clk("drawCpDash")){
  405.  
  406. CP:egpClear()
  407.  
  408. CP:egpBox(1,vec2(256,256),vec2(512,512))
  409.  
  410. CP:egpBox(2,vec2(256,460),vec2(512,920))
  411. CP:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  412. CP:egpAlpha(2,250)
  413. CP:egpColor(2,vec(74,119,143))
  414.  
  415. CP:egpBox(3,vec2(256,256),vec2(512,512))
  416. CP:egpMaterial(3,"gui/gradient_down")
  417. CP:egpColor(3,vec4(99,136,157,100))
  418.  
  419. CP:egpBox(4,vec2(256,256),vec2(380,220))
  420. CP:egpColor(4,15,15,15,220)
  421.  
  422. CP:egpBox(5,vec2(86,256),vec2(40,220))
  423. CP:egpColor(5,15,15,15,255)
  424.  
  425. CP:egpBox(6,vec2(86,166),vec2(40,40))
  426. CP:egpColor(6,74,119,143,150)
  427.  
  428. CP:egpText(7,"M",vec2(86,166))
  429. CP:egpAlign(7,1,1)
  430. CP:egpFont(7,"Courier New",28)
  431.  
  432. CP:egpBox(8,vec2(86,206),vec2(26,26))
  433. CP:egpMaterial(8,"data/stavox/images/mdicons_128_dashboard.png")
  434. CP:egpColor(8,50, 132, 229,255)
  435.  
  436. CP:egpBox(9,vec2(86,226),vec2(40,1))
  437. CP:egpColor(9,20,20,20,255)
  438.  
  439. CP:egpBox(10,vec2(86,246),vec2(26,26))
  440. CP:egpMaterial(10,"data/stavox/images/mdicons_128_trending_up.png")
  441.  
  442. CP:egpBox(11,vec2(86,266),vec2(40,1))
  443. CP:egpColor(11,20,20,20,255)
  444.  
  445. CP:egpBox(12,vec2(86,286),vec2(26,26))
  446. CP:egpMaterial(12,"data/stavox/images/mdicons_128_tune.png")
  447.  
  448. CP:egpBox(13,vec2(86,306),vec2(40,1))
  449. CP:egpColor(13,20,20,20,255)
  450.  
  451. CP:egpBox(14,vec2(86,326),vec2(26,26))
  452. CP:egpMaterial(14,"data/stavox/images/mdicons_128_archive.png")
  453.  
  454. CP:egpBox(15,vec2(276,166),vec2(340,40))
  455. CP:egpColor(15,15,15,15,255)
  456.  
  457. CP:egpText(16,"KONTROLPANEL",vec2(276,166))
  458. CP:egpAlign(16,1,1)
  459. CP:egpFont(16,"Courier New",22)
  460.  
  461. S1 = 1
  462.  
  463. #########################################################################################
  464. CP:egpBox(17,vec2(275,274),vec2(300,140))
  465. CP:egpColor(17,15,15,15,220)
  466.  
  467. CP:egpText(20,"MOUNTAIN GUNSHOP V 4.0",vec2(275,223))
  468. CP:egpAlign(20,1,1)
  469. CP:egpFont(20,"Courier New",20)
  470.  
  471. CP:egpBox(21,vec2(275,242),vec2(300,1))
  472. CP:egpColor(21,10,10,10,240)
  473.  
  474. CP:egpBox(22,vec2(375,293),vec2(101,101))
  475. CP:egpColor(22,15,15,15,100)
  476.  
  477. CP:egpText(23,"UDVIKLET",vec2(375,266))
  478. CP:egpAlign(23,1,1)
  479. CP:egpFont(23,"Courier New",20)
  480.  
  481. CP:egpText(24,"AF",vec2(375,280))
  482. CP:egpAlign(24,1,1)
  483. CP:egpFont(24,"Courier New",20)
  484.  
  485. CP:egpText(25,"MERLIN",vec2(375,310))
  486. CP:egpAlign(25,1,1)
  487. CP:egpFont(25,"Courier New",20)
  488.  
  489. CP:egpText(26,"___________",vec2(375,312))
  490. CP:egpAlign(26,1,1)
  491. CP:egpFont(26,"Courier New",16)
  492.  
  493. CP:egpText(27,"Spawnet af: "+owner():name(),vec2(134,260))
  494. CP:egpAlign(27,0,1)
  495. CP:egpFont(27,"Courier New",14)
  496.  
  497. CP:egpText(28,"Stort velkommen til...",vec2(134,280))
  498. CP:egpAlign(28,0,1)
  499. CP:egpFont(28,"Courier New",14)
  500.  
  501. CP:egpText(29,"Mountain Gunshop V 4.0",vec2(134,294))
  502. CP:egpAlign(29,0,1)
  503. CP:egpFont(29,"Courier New",14)
  504.  
  505. CP:egpText(30,"Tak for dit k"+oe()+"b!",vec2(134,308))
  506. CP:egpAlign(30,0,1)
  507. CP:egpFont(30,"Courier New",14)
  508.  
  509. addCursor1()
  510. }
  511.  
  512. if(clk("drawStats")){
  513.  
  514. CP:egpClear()
  515.  
  516. CP:egpBox(1,vec2(256,256),vec2(512,512))
  517.  
  518. CP:egpBox(2,vec2(256,460),vec2(512,920))
  519. CP:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  520. CP:egpAlpha(2,250)
  521. CP:egpColor(2,vec(74,119,143))
  522.  
  523. CP:egpBox(3,vec2(256,256),vec2(512,512))
  524. CP:egpMaterial(3,"gui/gradient_down")
  525. CP:egpColor(3,vec4(99,136,157,100))
  526.  
  527. CP:egpBox(4,vec2(256,256),vec2(380,220))
  528. CP:egpColor(4,15,15,15,220)
  529.  
  530. CP:egpBox(5,vec2(86,256),vec2(40,220))
  531. CP:egpColor(5,15,15,15,255)
  532.  
  533. CP:egpBox(6,vec2(86,166),vec2(40,40))
  534. CP:egpColor(6,74,119,143,150)
  535.  
  536. CP:egpText(7,"M",vec2(86,166))
  537. CP:egpAlign(7,1,1)
  538. CP:egpFont(7,"Courier New",28)
  539.  
  540. CP:egpBox(8,vec2(86,206),vec2(26,26))
  541. CP:egpMaterial(8,"data/stavox/images/mdicons_128_dashboard.png")
  542.  
  543. CP:egpBox(9,vec2(86,226),vec2(40,1))
  544. CP:egpColor(9,20,20,20,255)
  545.  
  546. CP:egpBox(10,vec2(86,246),vec2(26,26))
  547. CP:egpMaterial(10,"data/stavox/images/mdicons_128_trending_up.png")
  548. CP:egpColor(10,50, 132, 229,255)
  549.  
  550. CP:egpBox(11,vec2(86,266),vec2(40,1))
  551. CP:egpColor(11,20,20,20,255)
  552.  
  553. CP:egpBox(12,vec2(86,286),vec2(26,26))
  554. CP:egpMaterial(12,"data/stavox/images/mdicons_128_tune.png")
  555.  
  556. CP:egpBox(13,vec2(86,306),vec2(40,1))
  557. CP:egpColor(13,20,20,20,255)
  558.  
  559. CP:egpBox(14,vec2(86,326),vec2(26,26))
  560. CP:egpMaterial(14,"data/stavox/images/mdicons_128_archive.png")
  561.  
  562. CP:egpBox(15,vec2(276,166),vec2(340,40))
  563. CP:egpColor(15,15,15,15,255)
  564.  
  565. CP:egpText(16,"KONTROLPANEL",vec2(276,166))
  566. CP:egpAlign(16,1,1)
  567. CP:egpFont(16,"Courier New",22)
  568.  
  569.  
  570. CP:egpBox(17,vec2(194,214),vec2(150,30))
  571. CP:egpColor(17,15,15,15,200)
  572.  
  573. CP:egpBox(18,vec2(134,214),vec2(30,30))
  574. CP:egpColor(18,10,10,10,150)
  575.  
  576. CP:egpBox(19,vec2(134,214),vec2(20,20))
  577. CP:egpMaterial(19,"data/stavox/images/mdicons_128_attach_money.png")
  578.  
  579.  
  580. CP:egpText(20,moneyFormat(Omsat)+",-",vec2(154,214))
  581. CP:egpAlign(20,0,1)
  582. CP:egpFont(20,"Courier New",16)
  583.  
  584. #########################################################################################
  585.  
  586. CP:egpBox(21,vec2(352,214),vec2(150,30))
  587. CP:egpColor(21,15,15,15,200)
  588.  
  589. CP:egpBox(22,vec2(292,214),vec2(30,30))
  590. CP:egpColor(22,10,10,10,150)
  591.  
  592. CP:egpBox(23,vec2(292,214),vec2(20,20))
  593. CP:egpMaterial(23,"data/stavox/images/mdicons_128_swap_vert.png")
  594.  
  595. CP:egpText(24,moneyFormat(Tjent)+",-",vec2(312,214))
  596. CP:egpAlign(24,0,1)
  597. CP:egpFont(24,"Courier New",16)
  598.  
  599. S1 = 2
  600. }
  601. if(clk("drawStats1")){
  602. #########################################################################################
  603.  
  604. CP:egpBox(25,vec2(194,254),vec2(150,30))
  605. CP:egpColor(25,15,15,15,200)
  606.  
  607. CP:egpBox(26,vec2(134,254),vec2(30,30))
  608. CP:egpColor(26,10,10,10,150)
  609.  
  610. CP:egpBox(27,vec2(134,254),vec2(20,20))
  611. CP:egpMaterial(27,"data/stavox/images/mdicons_128_sync.png")
  612.  
  613. CP:egpText(28,""+Count+" stk.",vec2(154,254))
  614. CP:egpAlign(28,0,1)
  615. CP:egpFont(28,"Courier New",16)
  616.  
  617. #########################################################################################
  618. CP:egpBox(29,vec2(352,254),vec2(150,30))
  619. CP:egpColor(29,15,15,15,200)
  620.  
  621. CP:egpBox(30,vec2(292,254),vec2(30,30))
  622. CP:egpColor(30,10,10,10,150)
  623.  
  624. CP:egpBox(31,vec2(292,254),vec2(20,20))
  625. CP:egpMaterial(31,"data/stavox/images/mdicons_128_vertical_align_bottom.png")
  626.  
  627. CP:egpText(32,+Onlinevaaben+" stk.",vec2(312,254))
  628. CP:egpAlign(32,0,1)
  629. CP:egpFont(32,"Courier New",16)
  630.  
  631. #########################################################################################
  632.  
  633. CP:egpBox(33,vec2(194,294),vec2(150,30))
  634. CP:egpColor(33,15,15,15,200)
  635.  
  636. CP:egpBox(34,vec2(134,294),vec2(30,30))
  637. CP:egpColor(34,10,10,10,150)
  638.  
  639. CP:egpBox(35,vec2(134,294),vec2(20,20))
  640. CP:egpMaterial(35,"data/stavox/images/mdicons_128_person_add.png")
  641.  
  642. CP:egpText(36,"Ingen",vec2(154,294))
  643. CP:egpAlign(36,0,1)
  644. CP:egpFont(36,"Courier New",16)
  645. if(Seneste != ""){
  646. CP:egpSetText(36,""+Seneste)
  647. }else{
  648. CP:egpSetText(36,"Ingen")
  649. }
  650.  
  651. #########################################################################################
  652.  
  653. CP:egpBox(37,vec2(352,294),vec2(150,30))
  654. CP:egpColor(37,15,15,15,200)
  655.  
  656. CP:egpBox(38,vec2(292,294),vec2(30,30))
  657. CP:egpColor(38,10,10,10,150)
  658.  
  659. CP:egpBox(39,vec2(292,294),vec2(20,20))
  660. CP:egpMaterial(39,"data/stavox/images/mdicons_128_lock_open.png")
  661.  
  662. CP:egpText(40,Status,vec2(312,294))
  663. CP:egpAlign(40,0,1)
  664. CP:egpFont(40,"Courier New",16)
  665.  
  666. #########################################################################################
  667.  
  668. CP:egpBox(41,vec2(194,334),vec2(150,30))
  669. CP:egpColor(41,15,15,15,200)
  670.  
  671. CP:egpBox(42,vec2(134,334),vec2(30,30))
  672. CP:egpColor(42,10,10,10,150)
  673.  
  674. CP:egpBox(43,vec2(134,334),vec2(20,20))
  675. CP:egpMaterial(43,"data/stavox/images/mdicons_128_access_time.png")
  676.  
  677. CP:egpText(44,returnTime(),vec2(154,334))
  678. CP:egpAlign(44,0,1)
  679. CP:egpFont(44,"Courier New",16)
  680.  
  681. #########################################################################################
  682.  
  683. CP:egpBox(45,vec2(352,334),vec2(150,30))
  684. CP:egpColor(45,15,15,15,200)
  685.  
  686. CP:egpBox(46,vec2(292,334),vec2(30,30))
  687. CP:egpColor(46,10,10,10,150)
  688.  
  689. CP:egpBox(47,vec2(292,334),vec2(20,20))
  690. CP:egpMaterial(47,"data/stavox/images/mdicons_128_account_balance_wallet.png")
  691.  
  692. CP:egpText(48,moneyFormat(getMoney())+",-",vec2(312,334))
  693. CP:egpAlign(48,0,1)
  694. CP:egpFont(48,"Courier New",16)
  695.  
  696. S1 = 2
  697.  
  698. addCursor1()
  699. }
  700.  
  701. if(clk("drawSettings")){
  702.  
  703. CP:egpClear()
  704.  
  705. CP:egpBox(1,vec2(256,256),vec2(512,512))
  706.  
  707. CP:egpBox(2,vec2(256,460),vec2(512,920))
  708. CP:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  709. CP:egpAlpha(2,250)
  710. CP:egpColor(2,vec(74,119,143))
  711.  
  712. CP:egpBox(3,vec2(256,256),vec2(512,512))
  713. CP:egpMaterial(3,"gui/gradient_down")
  714. CP:egpColor(3,vec4(99,136,157,100))
  715.  
  716. CP:egpBox(4,vec2(256,256),vec2(380,220))
  717. CP:egpColor(4,15,15,15,220)
  718.  
  719. CP:egpBox(5,vec2(86,256),vec2(40,220))
  720. CP:egpColor(5,15,15,15,255)
  721.  
  722. CP:egpBox(6,vec2(86,166),vec2(40,40))
  723. CP:egpColor(6,74,119,143,150)
  724.  
  725. CP:egpText(7,"M",vec2(86,166))
  726. CP:egpAlign(7,1,1)
  727. CP:egpFont(7,"Courier New",28)
  728.  
  729. CP:egpBox(8,vec2(86,206),vec2(26,26))
  730. CP:egpMaterial(8,"data/stavox/images/mdicons_128_dashboard.png")
  731.  
  732. CP:egpBox(9,vec2(86,226),vec2(40,1))
  733. CP:egpColor(9,20,20,20,255)
  734.  
  735. CP:egpBox(10,vec2(86,246),vec2(26,26))
  736. CP:egpMaterial(10,"data/stavox/images/mdicons_128_trending_up.png")
  737.  
  738. CP:egpBox(11,vec2(86,266),vec2(40,1))
  739. CP:egpColor(11,20,20,20,255)
  740.  
  741. CP:egpBox(12,vec2(86,286),vec2(26,26))
  742. CP:egpMaterial(12,"data/stavox/images/mdicons_128_tune.pngw")
  743.  
  744. CP:egpBox(13,vec2(86,306),vec2(40,1))
  745. CP:egpColor(13,20,20,20,255)
  746.  
  747. CP:egpBox(14,vec2(86,326),vec2(26,26))
  748. CP:egpMaterial(14,"data/stavox/images/mdicons_128_archive.png")
  749.  
  750. CP:egpBox(15,vec2(276,166),vec2(340,40))
  751. CP:egpColor(15,15,15,15,255)
  752.  
  753. CP:egpText(16,"KONTROLPANEL",vec2(276,166))
  754. CP:egpAlign(16,1,1)
  755. CP:egpFont(16,"Courier New",22)
  756.  
  757. CP:egpColor(8,255, 255, 255,255)
  758. CP:egpColor(12,50, 132, 229,255)
  759.  
  760. CP:egpBox(17,vec2(380,275),vec2(100,150))
  761. CP:egpColor(17,15,15,15,200)
  762.  
  763. CP:egpBox(18,vec2(380,215),vec2(100,30))
  764. CP:egpColor(18,15,15,15,200)
  765.  
  766. CP:egpText(19,"Check Boxes",vec2(380,215))
  767. CP:egpAlign(19,1,1)
  768. CP:egpFont(19,"Courier New",14)
  769.  
  770. CP:egpBox(20,vec2(344,244),vec2(20,20))
  771. if(Q == 0){
  772. CP:egpMaterial(20,"data/stavox/images/mdicons_128_radio_button_checked.png")
  773. }else{
  774. CP:egpMaterial(20,"data/stavox/images/mdicons_128_radio_button_unchecked.png")
  775. }
  776. CP:egpText(21,""+aaL()+"ben",vec2(356,244))
  777. CP:egpAlign(21,0,1)
  778. CP:egpFont(21,"Courier New",14)
  779.  
  780.  
  781. CP:egpBox(22,vec2(344,270),vec2(20,20))
  782. if(W == 1){
  783. CP:egpMaterial(22,"data/stavox/images/mdicons_128_radio_button_unchecked.png")
  784. }else{
  785. CP:egpMaterial(22,"data/stavox/images/mdicons_128_radio_button_checked.png")
  786. }
  787. CP:egpText(23,"Opfyldning",vec2(356,270))
  788. CP:egpAlign(23,0,1)
  789. CP:egpFont(23,"Courier New",14)
  790.  
  791. CP:egpBox(24,vec2(344,296),vec2(20,20))
  792. if(T == 1){
  793. CP:egpMaterial(24,"data/stavox/images/mdicons_128_radio_button_unchecked.png")
  794. }else{
  795. CP:egpMaterial(24,"data/stavox/images/mdicons_128_radio_button_checked.png")
  796. }
  797. CP:egpText(25,"Lukket",vec2(356,296))
  798. CP:egpAlign(25,0,1)
  799. CP:egpFont(25,"Courier New",14)
  800.  
  801. CP:egpCircle(26,vec2(162,275),vec2(50,50))
  802. CP:egpColor(26,15,15,15,200)
  803.  
  804. CP:egpWedge(27, vec2(162, 275), vec2(50, 50))
  805. CP:egpColor(27, vec4(186, 220, 88, 200))
  806. CP:egpSize(27, 360 - (360 / 20000 * Profit))
  807. CP:egpAngle(27, 90)
  808.  
  809. CP:egpCircle(28,vec2(162,275),vec2(46,46))
  810. CP:egpColor(28,15,15,15,255)
  811.  
  812. CP:egpText(29,moneyFormat(Profit)+",-",vec2(162,275))
  813. CP:egpAlign(29,1,1)
  814. CP:egpFont(29,"Courier New",16)
  815.  
  816. CP:egpBox(30,vec2(154,300),vec2(20,20))
  817. CP:egpMaterial(30,"data/stavox/images/mdicons_128_arrow_drop_up.png")
  818.  
  819. CP:egpBox(31,vec2(168,300),vec2(20,20))
  820. CP:egpMaterial(31,"data/stavox/images/mdicons_128_arrow_drop_down.png")
  821.  
  822. #########################################################################################
  823.  
  824. CP:egpCircle(32,vec2(274,275),vec2(50,50))
  825. CP:egpColor(32,15,15,15,200)
  826.  
  827. CP:egpWedge(33, vec2(274, 275), vec2(50, 50))
  828. CP:egpColor(33, vec4(255, 190, 118, 200))
  829. CP:egpSize(33, 360 - (360 / 100 * Rabat))
  830. CP:egpAngle(33, 90)
  831.  
  832. CP:egpCircle(34,vec2(274,275),vec2(46,46))
  833. CP:egpColor(34,15,15,15,255)
  834.  
  835. CP:egpText(35,Rabat+"%",vec2(274,275))
  836. CP:egpAlign(35,1,1)
  837. CP:egpFont(35,"Courier New",16)
  838.  
  839. CP:egpBox(36,vec2(268,300),vec2(20,20))
  840. CP:egpMaterial(36,"data/stavox/images/mdicons_128_arrow_drop_up.png")
  841.  
  842. CP:egpBox(37,vec2(280,300),vec2(20,20))
  843. CP:egpMaterial(37,"data/stavox/images/mdicons_128_arrow_drop_down.png")
  844.  
  845. CP:egpBox(38,vec2(411,166),vec2(70,40))
  846. CP:egpColor(38,10,10,10,255)
  847.  
  848. CP:egpText(39,"Force",vec2(411,160))
  849. CP:egpAlign(39,1,1)
  850. CP:egpFont(39,"Courier New",14)
  851.  
  852. CP:egpText(40,"Logout",vec2(411,172))
  853. CP:egpAlign(40,1,1)
  854. CP:egpFont(40,"Courier New",14)
  855.  
  856. S1 = 3
  857.  
  858. addCursor1()
  859. }
  860.  
  861. if(clk("drawWeaponList")){
  862.  
  863. CP:egpClear()
  864.  
  865. CP:egpBox(1,vec2(256,256),vec2(512,512))
  866.  
  867. CP:egpBox(2,vec2(256,460),vec2(512,920))
  868. CP:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  869. CP:egpAlpha(2,250)
  870. CP:egpColor(2,vec(74,119,143))
  871.  
  872. CP:egpBox(3,vec2(256,256),vec2(512,512))
  873. CP:egpMaterial(3,"gui/gradient_down")
  874. CP:egpColor(3,vec4(99,136,157,100))
  875.  
  876. CP:egpBox(4,vec2(256,256),vec2(380,220))
  877. CP:egpColor(4,15,15,15,220)
  878.  
  879. CP:egpBox(5,vec2(86,256),vec2(40,220))
  880. CP:egpColor(5,15,15,15,255)
  881.  
  882. CP:egpBox(6,vec2(86,166),vec2(40,40))
  883. CP:egpColor(6,74,119,143,150)
  884.  
  885. CP:egpText(7,"M",vec2(86,166))
  886. CP:egpAlign(7,1,1)
  887. CP:egpFont(7,"Courier New",28)
  888.  
  889. CP:egpBox(8,vec2(86,206),vec2(26,26))
  890. CP:egpMaterial(8,"data/stavox/images/mdicons_128_dashboard.png")
  891.  
  892. CP:egpBox(9,vec2(86,226),vec2(40,1))
  893. CP:egpColor(9,20,20,20,255)
  894.  
  895. CP:egpBox(10,vec2(86,246),vec2(26,26))
  896. CP:egpMaterial(10,"data/stavox/images/mdicons_128_trending_up.png")
  897.  
  898. CP:egpBox(11,vec2(86,266),vec2(40,1))
  899. CP:egpColor(11,20,20,20,255)
  900.  
  901. CP:egpBox(12,vec2(86,286),vec2(26,26))
  902. CP:egpMaterial(12,"data/stavox/images/mdicons_128_tune.png")
  903.  
  904. CP:egpBox(13,vec2(86,306),vec2(40,1))
  905. CP:egpColor(13,20,20,20,255)
  906.  
  907. CP:egpBox(14,vec2(86,326),vec2(26,26))
  908. CP:egpMaterial(14,"data/stavox/images/mdicons_128_archive.png")
  909.  
  910. CP:egpBox(15,vec2(276,166),vec2(340,40))
  911. CP:egpColor(15,15,15,15,255)
  912.  
  913. CP:egpText(16,"KONTROLPANEL",vec2(276,166))
  914. CP:egpAlign(16,1,1)
  915. CP:egpFont(16,"Courier New",22)
  916.  
  917. CP:egpColor(8,255, 255, 255,255)
  918. CP:egpColor(14,50, 132, 229,255)
  919.  
  920.  
  921. CP:egpBox(17,vec2(194,214),vec2(150,30))
  922. CP:egpColor(17,15,15,15,200)
  923.  
  924. CP:egpBox(18,vec2(134,214),vec2(30,30))
  925. CP:egpColor(18,10,10,10,150)
  926.  
  927. CP:egpText(19,"1",vec2(134,214))
  928. CP:egpAlign(19,1,1)
  929. CP:egpFont(19,"Courier New",16)
  930.  
  931. CP:egpText(20,R1:wepName()+" | "+R1:shipmentAmount(),vec2(154,214))
  932. CP:egpAlign(20,0,1)
  933. CP:egpFont(20,"Courier New",16)
  934.  
  935. #########################################################################################
  936.  
  937. CP:egpBox(21,vec2(352,214),vec2(150,30))
  938. CP:egpColor(21,15,15,15,200)
  939.  
  940. CP:egpBox(22,vec2(292,214),vec2(30,30))
  941. CP:egpColor(22,10,10,10,150)
  942.  
  943. CP:egpText(23,"2",vec2(292,214))
  944. CP:egpAlign(23,1,1)
  945. CP:egpFont(23,"Courier New",16)
  946.  
  947. CP:egpText(24,R2:wepName()+" | "+R2:shipmentAmount(),vec2(312,214))
  948. CP:egpAlign(24,0,1)
  949. CP:egpFont(24,"Courier New",16)
  950.  
  951. #########################################################################################
  952.  
  953. CP:egpBox(25,vec2(194,254),vec2(150,30))
  954. CP:egpColor(25,15,15,15,200)
  955.  
  956. CP:egpBox(26,vec2(134,254),vec2(30,30))
  957. CP:egpColor(26,10,10,10,150)
  958.  
  959. CP:egpText(27,"3",vec2(134,254))
  960. CP:egpAlign(27,1,1)
  961. CP:egpFont(27,"Courier New",16)
  962.  
  963. CP:egpText(28,R3:wepName()+" | "+R3:shipmentAmount(),vec2(154,254))
  964. CP:egpAlign(28,0,1)
  965. CP:egpFont(28,"Courier New",16)
  966. }
  967. if(clk("drawWeaponList1")){
  968.  
  969. #########################################################################################
  970. CP:egpBox(29,vec2(352,254),vec2(150,30))
  971. CP:egpColor(29,15,15,15,200)
  972.  
  973. CP:egpBox(30,vec2(292,254),vec2(30,30))
  974. CP:egpColor(30,10,10,10,150)
  975.  
  976. CP:egpText(31,"4",vec2(292,254))
  977. CP:egpAlign(31,1,1)
  978. CP:egpFont(31,"Courier New",16)
  979.  
  980. CP:egpText(32,R4:wepName()+" | "+R4:shipmentAmount(),vec2(312,254))
  981. CP:egpAlign(32,0,1)
  982. CP:egpFont(32,"Courier New",16)
  983.  
  984. #########################################################################################
  985.  
  986. CP:egpBox(33,vec2(194,294),vec2(150,30))
  987. CP:egpColor(33,15,15,15,200)
  988.  
  989. CP:egpBox(34,vec2(134,294),vec2(30,30))
  990. CP:egpColor(34,10,10,10,150)
  991.  
  992. CP:egpText(35,"5",vec2(134,294))
  993. CP:egpAlign(35,1,1)
  994. CP:egpFont(35,"Courier New",16)
  995.  
  996. CP:egpText(36,R5:wepName()+" | "+R5:shipmentAmount(),vec2(154,294))
  997. CP:egpAlign(36,0,1)
  998. CP:egpFont(36,"Courier New",16)
  999.  
  1000. #########################################################################################
  1001.  
  1002. CP:egpBox(37,vec2(352,294),vec2(150,30))
  1003. CP:egpColor(37,15,15,15,200)
  1004.  
  1005. CP:egpBox(38,vec2(292,294),vec2(30,30))
  1006. CP:egpColor(38,10,10,10,150)
  1007.  
  1008. CP:egpText(39,"6",vec2(292,294))
  1009. CP:egpAlign(39,1,1)
  1010. CP:egpFont(39,"Courier New",16)
  1011.  
  1012. CP:egpText(40,R6:wepName()+" | "+R6:shipmentAmount(),vec2(312,294))
  1013. CP:egpAlign(40,0,1)
  1014. CP:egpFont(40,"Courier New",16)
  1015.  
  1016. #########################################################################################
  1017.  
  1018. CP:egpBox(41,vec2(194,334),vec2(150,30))
  1019. CP:egpColor(41,15,15,15,200)
  1020.  
  1021. CP:egpBox(42,vec2(134,334),vec2(30,30))
  1022. CP:egpColor(42,10,10,10,150)
  1023.  
  1024. CP:egpText(43,"7",vec2(134,334))
  1025. CP:egpAlign(43,1,1)
  1026. CP:egpFont(43,"Courier New",16)
  1027.  
  1028. CP:egpText(44,R7:wepName()+" | "+R7:shipmentAmount(),vec2(154,334))
  1029. CP:egpAlign(44,0,1)
  1030. CP:egpFont(44,"Courier New",16)
  1031.  
  1032. #########################################################################################
  1033.  
  1034. CP:egpBox(45,vec2(352,334),vec2(150,30))
  1035. CP:egpColor(45,15,15,15,200)
  1036.  
  1037. CP:egpBox(46,vec2(292,334),vec2(30,30))
  1038. CP:egpColor(46,10,10,10,150)
  1039.  
  1040. CP:egpText(47,"8",vec2(292,334))
  1041. CP:egpAlign(47,1,1)
  1042. CP:egpFont(47,"Courier New",16)
  1043.  
  1044.  
  1045. CP:egpText(48,R8:wepName()+" | "+R8:shipmentAmount(),vec2(312,334))
  1046. CP:egpAlign(48,0,1)
  1047. CP:egpFont(48,"Courier New",16)
  1048.  
  1049. S1 = 4
  1050.  
  1051. addCursor1()
  1052. }
  1053.  
  1054. if(clk("drawCloseUI")){
  1055.  
  1056. S = 30
  1057. E:egpClear()
  1058.  
  1059. E:egpBox(1,vec2(256,256),vec2(512,512))
  1060.  
  1061. E:egpBox(2,vec2(256,460),vec2(512,920))
  1062. E:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  1063. E:egpAlpha(2,250)
  1064. E:egpColor(2,vec(74,119,143))
  1065.  
  1066. E:egpBox(3,vec2(256,256),vec2(512,512))
  1067. E:egpMaterial(3,"gui/gradient_down")
  1068. E:egpColor(3,vec4(99,136,157,100))
  1069.  
  1070. E:egpBox(4,vec2(256,256),vec2(512,512))
  1071. E:egpColor(4,25,25,25,200)
  1072.  
  1073. E:egpCircle(5,vec2(256,200),vec2(150,150))
  1074. E:egpColor(5,179, 57, 57,255)
  1075.  
  1076. E:egpBox(6,vec2(246,200),vec2(150,150))
  1077. E:egpMaterial(6,"data/stavox/images/mdicons_128_pan_tool.png")
  1078.  
  1079. E:egpBox(9,vec2(256,400),vec2(50,450))
  1080. E:egpMaterial(9,"gui/gradient_down")
  1081. E:egpAngle(9,90)
  1082. E:egpColor(9,15,15,15,255)
  1083.  
  1084. E:egpText(7,"MOUNTAIN HAR LUKKET P"+aaL()+" NUV"+aeL()+"RENDE",vec2(256,392))
  1085. E:egpAlign(7,1,1)
  1086. E:egpFont(7,"Courier New",20)
  1087.  
  1088. E:egpText(8,"TIDSOUNKT KOM IGEN SENERE!",vec2(256,408))
  1089. E:egpAlign(8,1,1)
  1090. E:egpFont(8,"Courier New",20)
  1091. }
  1092.  
  1093. if(clk("drawWepUI")){
  1094.  
  1095. S = 31
  1096.  
  1097. E:egpClear()
  1098.  
  1099. E:egpBox(1,vec2(256,256),vec2(512,512))
  1100.  
  1101. E:egpBox(2,vec2(256,460),vec2(512,920))
  1102. E:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  1103. E:egpAlpha(2,250)
  1104. E:egpColor(2,vec(74,119,143))
  1105.  
  1106. E:egpBox(3,vec2(256,256),vec2(512,512))
  1107. E:egpMaterial(3,"gui/gradient_down")
  1108. E:egpColor(3,vec4(99,136,157,100))
  1109.  
  1110. E:egpBox(4,vec2(256,256),vec2(512,512))
  1111. E:egpColor(4,25,25,25,200)
  1112.  
  1113. E:egpCircle(5,vec2(256,200),vec2(150,150))
  1114. E:egpColor(5,255, 121, 63,255)
  1115.  
  1116. E:egpBox(6,vec2(256,200),vec2(150,150))
  1117. E:egpMaterial(6,"data/stavox/images/mdicons_128_vertical_align_bottom.png")
  1118.  
  1119. E:egpBox(9,vec2(256,400),vec2(50,450))
  1120. E:egpMaterial(9,"gui/gradient_down")
  1121. E:egpAngle(9,90)
  1122. E:egpColor(9,15,15,15,255)
  1123.  
  1124. E:egpText(7,"VI ER P"+aaL()+" NUV"+aeL()+"RENDE TIDSPUNKT",vec2(256,392))
  1125. E:egpAlign(7,1,1)
  1126. E:egpFont(7,"Courier New",20)
  1127.  
  1128. E:egpText(8,"IGANG MED AT FYLDE OP!",vec2(256,408))
  1129. E:egpAlign(8,1,1)
  1130. E:egpFont(8,"Courier New",20)
  1131.  
  1132.  
  1133. }
  1134.  
  1135. if(clk("drawStatusTime")){
  1136.  
  1137. E:egpClear()
  1138.  
  1139. E:egpBox(1,vec2(256,256),vec2(512,512))
  1140.  
  1141. E:egpBox(2,vec2(256,460),vec2(512,920))
  1142. E:egpMaterial(2,"data/stavox/images/wallpaper_2.jpg")
  1143. E:egpAlpha(2,250)
  1144. E:egpColor(2,vec(74,119,143))
  1145.  
  1146. E:egpBox(3,vec2(256,256),vec2(512,512))
  1147. E:egpMaterial(3,"gui/gradient_down")
  1148. E:egpColor(3,vec4(99,136,157,100))
  1149.  
  1150. E:egpBox(4,vec2(256,256),vec2(512,512))
  1151. E:egpColor(4,25,25,25,200)
  1152.  
  1153. E:egpCircle(5,vec2(256,200),vec2(150,150))
  1154. E:egpColor(5,255, 177, 66,255)
  1155.  
  1156. E:egpBox(6,vec2(256,200),vec2(150,150))
  1157. E:egpMaterial(6,"data/stavox/images/mdicons_128_cached.png")
  1158.  
  1159. E:egpBox(9,vec2(256,400),vec2(50,450))
  1160. E:egpMaterial(9,"gui/gradient_down")
  1161. E:egpAngle(9,90)
  1162. E:egpColor(9,15,15,15,255)
  1163.  
  1164. E:egpText(7,"VI HAR P"+aaL()+" NUV"+aeL()+"RENDE TIDSPUNKT",vec2(256,392))
  1165. E:egpAlign(7,1,1)
  1166. E:egpFont(7,"Courier New",20)
  1167.  
  1168. E:egpText(8,"INGEN V"+aaL()+"BEN P"+aaL()+" LAGER!",vec2(256,408))
  1169. E:egpAlign(8,1,1)
  1170. E:egpFont(8,"Courier New",20)
  1171.  
  1172. timer("drawHome",2500)
  1173. }
  1174.  
  1175. if(S == 1 & ops()<100){
  1176. if(~U & U){
  1177. if(shipmentInStock()){
  1178. if(E:egpButton(1,U)){timer("drawSignInHey",200) Velkommen=" " FinalVelkommen=("Velkommen "+U:name()):explode("") CurUser = U timer("CurUserDistance",5000) }
  1179. }
  1180. else{
  1181. timer("drawStatusTime",100)
  1182. }
  1183. }
  1184. }
  1185.  
  1186. if(S == 3 & ops()<100 & CurUser == U){
  1187. if(~U & U){
  1188. if(E:egpButton(6,U)){timer("drawHome",200) CurUser = noentity()}
  1189.  
  1190. }
  1191. }
  1192.  
  1193. if(clk("Velkommen")&S==2){
  1194. if(Velkommen:length()<=FinalVelkommen:count())
  1195. {
  1196. Velkommen=Velkommen+FinalVelkommen[Velkommen:length(),string]
  1197. E:egpSetText(8,Velkommen:sub(2))
  1198. timer("Velkommen",100)
  1199. }else{timer("drawShop",250)}
  1200.  
  1201. }
  1202.  
  1203. #-------------------------------------SHOPSYSTEM-------------------------------------#
  1204. if(S == 3 & ops()<100 & CurUser == U){
  1205.  
  1206. #--------Betaling
  1207. if(E:egpButton(44,U)&PayPrice>0){moneyRequest(CurUser,PayPrice,"Siana") timer("waitUIOrdrer",100)}
  1208.  
  1209. #--------Choose weps
  1210. #----1
  1211. elseif(E:egpButton(12,U)&R1:isShipment()){
  1212. if(W1 == 0){
  1213. PayPrice = PayPrice+R1:wepPrice() W1 = 1 E:egpBox(13,vec2(180,220),vec2(1,140)) E:egpColor(13,50,141,194,255) E:egpMaterial(13,"gui/gradient_down") E:egpAngle(13,90)
  1214. }else{PayPrice = PayPrice-R1:wepPrice() W1 = 0 E:egpBox(13,vec2(180,220),vec2(140,1)) E:egpMaterial(13,"") E:egpAngle(13,0) E:egpColor(13,50,141,194,150)}
  1215. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1216.  
  1217. elseif(E:egpButton(16,U)&R2:isShipment()){
  1218. if(W2 == 0){
  1219. PayPrice = PayPrice+R2:wepPrice() W2 = 1 E:egpBox(17,vec2(333,220),vec2(1,140)) E:egpColor(17,50,141,194,255) E:egpMaterial(17,"gui/gradient_down") E:egpAngle(17,90)
  1220. }else{PayPrice = PayPrice-R2:wepPrice() W2 = 0 E:egpBox(17,vec2(333,220),vec2(140,1)) E:egpMaterial(17,"") E:egpAngle(17,0) E:egpColor(17,50,141,194,150)}
  1221. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1222.  
  1223. elseif(E:egpButton(20,U)&R3:isShipment()){
  1224. if(W3 == 0){
  1225. PayPrice = PayPrice+R3:wepPrice() W3 = 1 E:egpBox(21,vec2(180,292),vec2(1,140)) E:egpColor(21,50,141,194,255) E:egpMaterial(21,"gui/gradient_down") E:egpAngle(21,90)
  1226. }else{PayPrice = PayPrice-R3:wepPrice() W3 = 0 E:egpBox(21,vec2(180,292),vec2(140,1)) E:egpMaterial(21,"") E:egpAngle(21,0) E:egpColor(21,50,141,194,150)}
  1227. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1228.  
  1229. elseif(E:egpButton(24,U)&R4:isShipment()){
  1230. if(W4 == 0){
  1231. PayPrice = PayPrice+R4:wepPrice() W4 = 1 E:egpBox(25,vec2(333,292),vec2(1,140)) E:egpColor(25,50,141,194,255) E:egpMaterial(25,"gui/gradient_down") E:egpAngle(25,90)
  1232. }else{PayPrice = PayPrice-R4:wepPrice() W4 = 0 E:egpBox(25,vec2(333,292),vec2(140,1)) E:egpMaterial(25,"") E:egpAngle(25,0) E:egpColor(25,50,141,194,150)}
  1233. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1234.  
  1235. elseif(E:egpButton(28,U)&R5:isShipment()){
  1236. if(W5 == 0){
  1237. PayPrice = PayPrice+R5:wepPrice() W5 = 1 E:egpBox(29,vec2(180,364),vec2(1,140)) E:egpColor(29,50,141,194,255) E:egpMaterial(29,"gui/gradient_down") E:egpAngle(29,90)
  1238. }else{PayPrice = PayPrice-R5:wepPrice() W5 = 0 E:egpBox(29,vec2(180,364),vec2(140,1)) E:egpMaterial(29,"") E:egpAngle(29,0) E:egpColor(29,50,141,194,150)}
  1239. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1240.  
  1241. elseif(E:egpButton(32,U)&R6:isShipment()){
  1242. if(W6 == 0){
  1243. PayPrice = PayPrice+R6:wepPrice() W6 = 1 E:egpBox(33,vec2(333,364),vec2(1,140)) E:egpColor(33,50,141,194,255) E:egpMaterial(33,"gui/gradient_down") E:egpAngle(33,90)
  1244. }else{PayPrice = PayPrice-R6:wepPrice() W6 = 0 E:egpBox(33,vec2(333,364),vec2(140,1)) E:egpMaterial(33,"") E:egpAngle(33,0) E:egpColor(33,50,141,194,150)}
  1245. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1246.  
  1247. elseif(E:egpButton(36,U)&R7:isShipment()){
  1248. if(W7 == 0){
  1249. PayPrice = PayPrice+R6:wepPrice() W7 = 1 E:egpBox(37,vec2(180,436),vec2(1,140)) E:egpColor(37,50,141,194,255) E:egpMaterial(37,"gui/gradient_down") E:egpAngle(37,90)
  1250. }else{PayPrice = PayPrice-R7:wepPrice() W7 = 0 E:egpBox(37,vec2(180,436),vec2(140,1)) E:egpMaterial(37,"") E:egpAngle(37,0) E:egpColor(37,50,141,194,150)}
  1251. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1252.  
  1253. elseif(E:egpButton(40,U)&R8:isShipment()){
  1254. if(W8 == 0){
  1255. PayPrice = PayPrice+R8:wepPrice() W8 = 1 E:egpBox(41,vec2(333,436),vec2(1,140)) E:egpColor(41,50,141,194,255) E:egpMaterial(41,"gui/gradient_down") E:egpAngle(41,90)
  1256. }else{PayPrice = PayPrice-R8:wepPrice() W8 = 0 E:egpBox(41,vec2(333,436),vec2(140,1)) E:egpMaterial(41,"") E:egpAngle(41,0) E:egpColor(41,50,141,194,150)}
  1257. E:egpSetText(46,"Bestil: "+moneyFormat(PayPrice)+",-")}
  1258. }
  1259.  
  1260. if(clk("waitUIOrdrer")){
  1261.  
  1262. E:egpBox(100,vec2(256,256),vec2(512,40))
  1263. E:egpColor(100,15,15,15,230)
  1264.  
  1265. E:egpText(101,"Afventer betaling p"+aa()+" ordrer!",vec2(256,256))
  1266. E:egpAlign(101,1,1)
  1267. E:egpFont(101,"Courier New",22)
  1268.  
  1269. E:egpBox(102,vec2(256,276),vec2(512,1))
  1270. E:egpColor(102,255, 159, 67,255)
  1271. }
  1272.  
  1273. if(moneyNoClk()){
  1274. NoBuyer++
  1275. E:egpRemove(100)
  1276. E:egpRemove(101)
  1277. E:egpRemove(102)
  1278.  
  1279. E:egpBox(100,vec2(256,256),vec2(512,40))
  1280. E:egpColor(100,15,15,15,230)
  1281.  
  1282. E:egpText(101,"Du afviste din ordrer!",vec2(256,256))
  1283. E:egpAlign(101,1,1)
  1284. E:egpFont(101,"Courier New",22)
  1285.  
  1286. E:egpBox(102,vec2(256,276),vec2(512,1))
  1287. E:egpColor(102,214, 48, 49,255)
  1288.  
  1289. timer("drawHome",2000)
  1290.  
  1291. }
  1292.  
  1293. if(moneyTimeout()){
  1294. E:egpRemove(100)
  1295. E:egpRemove(101)
  1296. E:egpRemove(102)
  1297.  
  1298. E:egpBox(100,vec2(256,256),vec2(512,40))
  1299. E:egpColor(100,15,15,15,230)
  1300.  
  1301. E:egpText(101,"Du afviste din ordrer!",vec2(256,256))
  1302. E:egpAlign(101,1,1)
  1303. E:egpFont(101,"Courier New",22)
  1304.  
  1305. E:egpBox(102,vec2(256,276),vec2(512,1))
  1306. E:egpColor(102,214, 48, 49,255)
  1307.  
  1308. timer("drawHome",2000)
  1309. }
  1310.  
  1311. if(moneyClk()){
  1312. E:egpRemove(100)
  1313. E:egpRemove(101)
  1314. E:egpRemove(102)
  1315.  
  1316. E:egpBox(100,vec2(256,256),vec2(512,40))
  1317. E:egpColor(100,15,15,15,230)
  1318.  
  1319. E:egpText(101,"Du betalte din ordrer!",vec2(256,256))
  1320. E:egpAlign(101,1,1)
  1321. E:egpFont(101,"Courier New",22)
  1322.  
  1323. E:egpBox(102,vec2(256,276),vec2(512,1))
  1324. E:egpColor(102,46, 213, 115,255)
  1325.  
  1326. timer("ejectWeapons",1000)
  1327. timer("drawHome",2000)
  1328. timer("updateCp",3000)
  1329. concmd("say /pm "+CurUser:steamID()+" Din odrer blev accepteret! Tak for dit k"+oe()+"b hos "+ShopName+". P"+aa()+" gensyn")
  1330. Seneste = moneyClkPlayer():name()
  1331. printColor(vec(200,200,200),"[ ",vec(74, 105, 189),ShopName,vec(200,200,200)," ] ",vec(1, 163, 164),CurUser:name(),vec(200,200,200)," har k"+oe()+"bt v"+aa()+"ben for ",vec(106, 176, 76),PayPrice,vec(200,200,200),",- | Du har nu ",vec(106, 176, 76),Onlinevaaben,vec(200,200,200)," v"+aa()+"ben tilbage!")
  1332.  
  1333. }
  1334.  
  1335. if(clk("updateCp") & S1 == 2){
  1336. CP:egpText(20,moneyFormat(Omsat)+",-",vec2(154,214))
  1337. CP:egpText(24,moneyFormat(Tjent)+",-",vec2(312,214))
  1338. CP:egpText(28,""+Count+" stk.",vec2(154,254))
  1339. CP:egpText(32,+Onlinevaaben+" stk.",vec2(312,254))
  1340. CP:egpSetText(36,""+Seneste)
  1341. }
  1342.  
  1343.  
  1344. if(clk("ejectWeapons")){
  1345.  
  1346. if(W1==1){R1:ejectWeapon() Count++ Tjent+=Profit Omsat+=R1:wepPrice()}
  1347. if(W2==1){R2:ejectWeapon() Count++ Tjent+=Profit Omsat+=R2:wepPrice()}
  1348. if(W3==1){R3:ejectWeapon() Count++ Tjent+=Profit Omsat+=R3:wepPrice()}
  1349. if(W4==1){R4:ejectWeapon() Count++ Tjent+=Profit Omsat+=R4:wepPrice()}
  1350. if(W5==1){R5:ejectWeapon() Count++ Tjent+=Profit Omsat+=R5:wepPrice()}
  1351. if(W6==1){R6:ejectWeapon() Count++ Tjent+=Profit Omsat+=R6:wepPrice()}
  1352. if(W7==1){R7:ejectWeapon() Count++ Tjent+=Profit Omsat+=R7:wepPrice()}
  1353. if(W8==1){R8:ejectWeapon() Count++ Tjent+=Profit Omsat+=R8:wepPrice()}
  1354.  
  1355. }
  1356.  
  1357. Onlinevaaben = R1:shipmentAmount() + R2:shipmentAmount() + R3:shipmentAmount() + R4:shipmentAmount() + R5:shipmentAmount() + R6:shipmentAmount() + R7:shipmentAmount() + R8:shipmentAmount()
  1358.  
  1359. if(~CU & CU:keyUse() & CU == owner() & ops()<150){
  1360.  
  1361. if(S1 == 1){
  1362. if(CP:egpButton(10,CU)){ timer("drawStats",100) timer("drawStats1",300) timer("Tid",100) CP:egpColor(8,255, 255, 255,255) CP:egpColor(10,50, 132, 229,255)}
  1363. if(CP:egpButton(12,CU)){ timer("drawSettings",200) CP:egpColor(8,255, 255, 255,255) CP:egpColor(12,50, 132, 229,255)}
  1364. if(CP:egpButton(14,CU)){ timer("drawWeaponList",100) timer("drawWeaponList1",300) CP:egpColor(8,255, 255, 255,255) CP:egpColor(14,50, 132, 229,255)}
  1365. }
  1366.  
  1367. if(S1 == 2){
  1368. if(CP:egpButton(8,CU)){ timer("drawCpDash",200) CP:egpColor(10,255, 255, 255,255) CP:egpColor(8,50, 132, 229,255)}
  1369. if(CP:egpButton(12,CU)){ timer("drawSettings",200) CP:egpColor(10,255, 255, 255,255) CP:egpColor(12,50, 132, 229,255)}
  1370. if(CP:egpButton(14,CU)){ timer("drawWeaponList",100) timer("drawWeaponList1",300) CP:egpColor(10,255, 255, 255,255) CP:egpColor(14,50, 132, 229,255)}
  1371.  
  1372. }
  1373.  
  1374. if(S1 == 3){
  1375. if(CP:egpButton(8,CU)){ timer("drawCpDash",200) CP:egpColor(12,255, 255, 255,255) CP:egpColor(8,50, 132, 229,255)}
  1376. if(CP:egpButton(10,CU)){ timer("drawStats",100) timer("drawStats1",300) CP:egpColor(12,255, 255, 255,255) CP:egpColor(10,50, 132, 229,255)}
  1377. if(CP:egpButton(14,CU)){ timer("drawWeaponList",100) timer("drawWeaponList1",300) CP:egpColor(12,255, 255, 255,255) CP:egpColor(14,50, 132, 229,255)}
  1378.  
  1379. if(CP:egpButton(31,CU) & Profit){Profit-=500 CP:egpSetText(29,moneyFormat(Profit)+",-") CP:egpSize(27, 360 - (360 / 20000 * Profit)) CP:egpAlpha(27, 255) if(!Profit) {CP:egpAlpha(27, 0)}}
  1380. if(CP:egpButton(30,CU) & Profit < 20000){Profit+=500 CP:egpSetText(29,moneyFormat(Profit)+",-") CP:egpSize(27, 360 - (360 / 20000 * Profit)) CP:egpAlpha(27, 255)}
  1381.  
  1382. if(CP:egpButton(37,CU) & Rabat){Rabat-=5 CP:egpSetText(35,Rabat+"%") CP:egpSize(33, 360 - (360 / 100 * Rabat)) CP:egpAlpha(33, 255) if(!Rabat) {CP:egpAlpha(33, 0)}}
  1383. if(CP:egpButton(36,CU) & Rabat < 100){Rabat+=5 CP:egpSetText(35,Rabat+"%") CP:egpSize(33, 360 - (360 / 100 * Rabat)) CP:egpAlpha(33, 255)}
  1384.  
  1385. if(CP:egpButton(20,CU)){timer("drawHome",200) Q = 0 W = 1 T = 1 Status = ""+aaL()+"ben" CP:egpMaterial(20,"data/stavox/images/mdicons_128_radio_button_checked.png") CP:egpMaterial(22,"data/stavox/images/mdicons_128_radio_button_unchecked.png") CP:egpMaterial(24,"data/stavox/images/mdicons_128_radio_button_unchecked.png")}
  1386. if(CP:egpButton(22,CU)){timer("drawWepUI",200) Q = 1 W = 0 T = 1 Status = "Opfyldning" CP:egpMaterial(22,"data/stavox/images/mdicons_128_radio_button_checked.png") CP:egpMaterial(20,"data/stavox/images/mdicons_128_radio_button_unchecked.png") CP:egpMaterial(24,"data/stavox/images/mdicons_128_radio_button_unchecked.png")}
  1387. if(CP:egpButton(24,CU)){timer("drawCloseUI",200) Q = 1 W = 1 T = 0 Status = "Lukket" CP:egpMaterial(24,"data/stavox/images/mdicons_128_radio_button_checked.png") CP:egpMaterial(22,"data/stavox/images/mdicons_128_radio_button_unchecked.png") CP:egpMaterial(20,"data/stavox/images/mdicons_128_radio_button_unchecked.png")}
  1388.  
  1389. if(CP:egpButton(38,CU)){ hint("Loggede person ud af Mountain gunshop!",4000) timer("drawHome",200)}
  1390. }
  1391.  
  1392.  
  1393. if(S1 == 4){
  1394. if(CP:egpButton(8,CU)){ timer("drawCpDash",200) CP:egpColor(14,255, 255, 255,255) CP:egpColor(8,50, 132, 229,255)}
  1395. if(CP:egpButton(10,CU)){ timer("drawStats",100) timer("drawStats1",300) CP:egpColor(14,255, 255, 255,255) CP:egpColor(10,50, 132, 229,255)}
  1396. if(CP:egpButton(12,CU)){ timer("drawSettings",100) CP:egpColor(14,255, 255, 255,255) CP:egpColor(12,50, 132, 229,255)}
  1397.  
  1398. }
  1399. }
  1400.  
  1401. #---Print weapons
  1402. if(chatClk(owner()))
  1403. {
  1404. Said = owner():lastSaid():lower():explode(" ")
  1405. Cmd = lastSaid():explode(" "):string(1)
  1406. switch(Cmd)
  1407. {
  1408. case"!ws",
  1409. printColor(vec(200,200,200),"[ ",vec(74, 105, 189),ShopName,vec(200,200,200)," ] V"+aa()+"ben p"+aa()+" lager liste!")
  1410. printColor(vec(200,200,200),"1. V"+aa()+"ben: "+R1:wepName()+" Antal: "+R1:shipmentAmount())
  1411. printColor(vec(200,200,200),"2. V"+aa()+"ben: "+R2:wepName()+" Antal: "+R2:shipmentAmount())
  1412. printColor(vec(200,200,200),"3. V"+aa()+"ben: "+R3:wepName()+" Antal: "+R3:shipmentAmount())
  1413. printColor(vec(200,200,200),"4. V"+aa()+"ben: "+R4:wepName()+" Antal: "+R4:shipmentAmount())
  1414. printColor(vec(200,200,200),"5. V"+aa()+"ben: "+R5:wepName()+" Antal: "+R5:shipmentAmount())
  1415. printColor(vec(200,200,200),"6. V"+aa()+"ben: "+R6:wepName()+" Antal: "+R6:shipmentAmount())
  1416. printColor(vec(200,200,200),"7. V"+aa()+"ben: "+R7:wepName()+" Antal: "+R7:shipmentAmount())
  1417. printColor(vec(200,200,200),"8. V"+aa()+"ben: "+R8:wepName()+" Antal: "+R8:shipmentAmount())
  1418.  
  1419. hideChat(1)
  1420. }
  1421. }
  1422.  
  1423. if(chatClk(owner()))
  1424. {
  1425. Said = owner():lastSaid():lower():explode(" ")
  1426. Cmd = lastSaid():explode(" "):string(1)
  1427. switch(Cmd)
  1428. {
  1429. case"!profit",
  1430. if(lastSpoke() == owner()){
  1431. Profit = Said[2, string]:toNumber()
  1432. printColor(vec(200,200,200),"[ ",vec(74, 105, 189),ShopName,vec(200,200,200)," ] Profit sat til ",vec(106, 176, 76),+Said[2, string]:toNumber(),vec(200,200,200),",-")
  1433. if(S1 == 3){ CP:egpSetText(29,moneyFormat(Profit)+",-")}
  1434. hideChat(1)
  1435. }
  1436. }
  1437. }
  1438.  
  1439. #-------------------------------------------------------------------------------------#
  1440. #--- Log ud auto // For langt vaek ---#
  1441. if(clk("CurUserDistance")){
  1442. if(S<20 & ops()<100){
  1443. if(CurUser:pos():distance(E:entity():pos())>75){timer("drawHome",250) CurUser = noentity()
  1444. }
  1445. }
  1446. timer("CurUserDistance",3000)
  1447. }
  1448.  
  1449.  
  1450.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement