Advertisement
Guest User

Stavox Gunshop V1.3A

a guest
Mar 29th, 2017
1,023
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.75 KB | None | 0 0
  1. @name Stavox Gunshop V1.3a [By Cyka]
  2. @inputs [EGP,Skilt]:wirelink [User,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10]:entity
  3. @outputs U1 U2 U3 U4 U5 U6 U7 U8 U9 U10
  4. @persist [Pris1,Pris2,Pris3,Pris4,Pris5,Pris6,Pris7,Pris8,Pris9,Pris10,Pris11,Pris12,Profit,Side,Antal,Valgt,LoggedIn,Checked]:number CurUser:entity G:vector SpillerNavn:entity Blacklist:table BlackListed
  5.  
  6.  
  7. #[ [Stavox Gunshop]
  8. Denne E2 er lavet af Cyka, med hjalp fra CasperDK & Spider Pig
  9.  
  10. Ved at bruge den, acceptere du disse TOS: http://pastebin.com/buVTbwjR
  11.  
  12. Hvis du ikke har den fra Cyka (STEAM_0:1:32726131)
  13. Overholder du IKKE TOS.
  14.  
  15. Brug !help, for at se E2'ens commands.
  16.  
  17. Er du i tvivl, hvem der er whitelisted?
  18. Kig her: http://spacexe2.weebly.com/
  19. ]#
  20.  
  21. if(first()){
  22. LoggedIn = 0
  23. Skilt:egpClear()
  24.  
  25. Skilt:egpRoundedBox(1,vec2(50,400),vec2(150,150))
  26. Skilt:egpColor(1,vec(231, 76, 60))
  27.  
  28. Skilt:egpText(2,"S",vec2(-10,330))
  29. Skilt:egpSize(2,200)
  30.  
  31. Skilt:egpText(3,"x",vec2(50,355))
  32. Skilt:egpSize(3,100)
  33.  
  34. Skilt:egpText(4,"Gunshop",vec2(150,350))
  35. Skilt:egpSize(4,100)
  36.  
  37. dsJoinGroup(owner():steamID())
  38. dsSetScope(2)
  39. timer("startUp",250)
  40. print("-------[Stavox Gunshop]-------")
  41. print("Ved at bruge den, acceptere du TOS")
  42. print("")
  43. print("Husk at bruge !profit tal, til at s"+ae()+"tte din profit")
  44. print("")
  45. print("Brug !help, for at se hj"+ae()+"lpe menuen")
  46.  
  47. function number wirelink:egpButton(Idx:number,Ply:entity)
  48. {
  49. TopLeft = 0
  50. TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (TopLeft ? 0 : 1)
  51. BR = This:egpPos(Idx) + This:egpSize(Idx) / (TopLeft ? 1 : 2)
  52. Cur = This:egpCursor(Ply)
  53. return inrange(Cur, TL, BR)
  54. exit()
  55. }
  56.  
  57.  
  58. function string entity:wepName(){
  59. if(This:isShipment()){
  60. Name=This:shipmentName()
  61. if(Name:find("1x")){return ""+Name}
  62. if(Name:find("10x")){return ""+Name}
  63. else{return "Udsolgt"}
  64. }else{return "Udsolgt"}}
  65.  
  66. function void drawBase1(){
  67. EGP:egpClear()
  68. EGP:egpBox(200,vec2(256,61),vec2(520,120))
  69. EGP:egpColor(200,242,242,242,255)
  70. EGP:egpBox(201,vec2(276,51),vec2(354,32))
  71. EGP:egpColor(201,173,173,173,255)
  72. EGP:egpBox(202,vec2(276,51),vec2(352,30))
  73.  
  74. EGP:egpBox(203,vec2(43,48),vec2(2,12)),EGP:egpAngle(203,-45),EGP:egpColor(203,90,90,90,255)
  75. EGP:egpBox(204,vec2(43,55),vec2(2,12)),EGP:egpAngle(204,45),EGP:egpColor(204,90,90,90,255)
  76. EGP:egpBox(205,vec2(63,48),vec2(2,12)),EGP:egpAngle(205,45),EGP:egpColor(205,90,90,90,255)
  77. EGP:egpBox(206,vec2(63,55),vec2(2,12)),EGP:egpAngle(206,-45),EGP:egpColor(206,90,90,90,255)
  78.  
  79. EGP:egpText(207,"https://stavox.com/gunshop",vec2(109,40))
  80. EGP:egpColor(207,31,46,45,255)
  81. EGP:egpSize(207,20)
  82.  
  83. EGP:egpBoxOutline(208,vec2(256,51),vec2(452,65))
  84. EGP:egpColor(208,173,173,173,255)
  85.  
  86. EGP:egpBox(270,vec2(83,52),vec2(28,28))
  87. EGP:egpMaterial(270,"gui/html/refresh")
  88. EGP:egpColor(270,80,80,80,255)
  89. }
  90.  
  91. function void drawBase2(){
  92. EGP:egpBox(251,vec2(468,42),vec2(5,5))
  93. EGP:egpColor(251,1,1,1,230)
  94.  
  95. EGP:egpBox(252,vec2(468,52),vec2(5,5))
  96. EGP:egpColor(252,1,1,1,230)
  97.  
  98. EGP:egpBox(253,vec2(468,62),vec2(5,5))
  99. EGP:egpColor(253,1,1,1,230)
  100.  
  101. EGP:egpBox(10,vec2(260,130),vec2(520,80))
  102. EGP:egpColor(10,vec(44, 62, 80))
  103.  
  104. EGP:egpBox(11,vec2(255,150),vec2(460,40))
  105. EGP:egpColor(11,vec(231, 76, 60))
  106.  
  107. EGP:egpText(12,"Stavox",vec2(26,90))
  108. EGP:egpSize(12,40)
  109.  
  110. EGP:egpBox(13,vec2(70,152),vec2(80,35))
  111. EGP:egpColor(13,vec(202, 93, 68))
  112. EGP:egpText(14,"Forums",vec2(40,140))
  113. EGP:egpSize(14,20)
  114.  
  115. EGP:egpBox(15,vec2(155,152),vec2(80,35))
  116. EGP:egpColor(15,vec(202, 93, 68))
  117.  
  118. EGP:egpText(16,"Regler",vec2(127,140))
  119. EGP:egpSize(16,20)
  120.  
  121. EGP:egpBox(17,vec2(280,152),vec2(160,35))
  122. EGP:egpColor(17,vec(202, 93, 68))
  123.  
  124. EGP:egpText(18,"In-game Staff",vec2(223,140))
  125. EGP:egpSize(18,20)
  126.  
  127. EGP:egpBox(19,vec2(423,152),vec2(112,35))
  128. EGP:egpColor(19,vec(245, 245, 245))
  129.  
  130. EGP:egpText(20,"Gunshop",vec2(380,140))
  131. EGP:egpColor(20,vec(0,0,0))
  132. EGP:egpSize(20,20)
  133.  
  134. EGP:egpBox(21,vec2(255,369),vec2(460,400))
  135. EGP:egpColor(21,vec(245, 245, 245))
  136.  
  137. EGP:egpBox(35,vec2(10,369),vec2(30,400))
  138. EGP:egpColor(35,vec(235, 238, 242))
  139.  
  140. EGP:egpBox(36,vec2(500,369),vec2(30,400))
  141. EGP:egpColor(36,vec(235, 238, 242))
  142. }
  143.  
  144. function void drawBase3(){
  145. EGP:egpBox(251,vec2(468,42),vec2(5,5))
  146. EGP:egpColor(251,1,1,1,230)
  147.  
  148. EGP:egpBox(252,vec2(468,52),vec2(5,5))
  149. EGP:egpColor(252,1,1,1,230)
  150.  
  151. EGP:egpBox(253,vec2(468,62),vec2(5,5))
  152. EGP:egpColor(253,1,1,1,230)
  153.  
  154. EGP:egpBox(10,vec2(260,130),vec2(520,80))
  155. EGP:egpColor(10,vec(44, 62, 80))
  156.  
  157. EGP:egpBox(11,vec2(255,150),vec2(460,40))
  158. EGP:egpColor(11,vec(231, 76, 60))
  159.  
  160. EGP:egpText(12,"Stavox",vec2(26,90))
  161. EGP:egpSize(12,40)
  162.  
  163. EGP:egpBox(13,vec2(70,152),vec2(80,35))
  164. EGP:egpColor(13,vec(202, 93, 68))
  165. EGP:egpText(14,"Forums",vec2(40,140))
  166. EGP:egpSize(14,20)
  167.  
  168. EGP:egpBox(15,vec2(155,152),vec2(80,35))
  169. EGP:egpColor(15,vec(202, 93, 68))
  170.  
  171. EGP:egpText(16,"Regler",vec2(127,140))
  172. EGP:egpSize(16,20)
  173.  
  174. EGP:egpBox(17,vec2(280,152),vec2(160,35))
  175. EGP:egpColor(17,vec(245, 245, 245))
  176.  
  177. EGP:egpText(18,"In-game Staff",vec2(223,140))
  178. EGP:egpColor(18,vec(0,0,0))
  179. EGP:egpSize(18,20)
  180.  
  181. EGP:egpBox(19,vec2(423,152),vec2(112,35))
  182. EGP:egpColor(19,vec(202, 93, 68))
  183.  
  184. EGP:egpText(20,"Gunshop",vec2(380,140))
  185. EGP:egpSize(20,20)
  186.  
  187. EGP:egpBox(21,vec2(255,369),vec2(460,400))
  188. EGP:egpColor(21,vec(245, 245, 245))
  189.  
  190. EGP:egpBox(35,vec2(10,369),vec2(30,400))
  191. EGP:egpColor(35,vec(235, 238, 242))
  192.  
  193. EGP:egpBox(36,vec2(500,369),vec2(30,400))
  194. EGP:egpColor(36,vec(235, 238, 242))
  195. }
  196.  
  197. function void drawBase4(){
  198. EGP:egpBox(251,vec2(468,42),vec2(5,5))
  199. EGP:egpColor(251,1,1,1,230)
  200.  
  201. EGP:egpBox(252,vec2(468,52),vec2(5,5))
  202. EGP:egpColor(252,1,1,1,230)
  203.  
  204. EGP:egpBox(253,vec2(468,62),vec2(5,5))
  205. EGP:egpColor(253,1,1,1,230)
  206.  
  207. EGP:egpBox(10,vec2(260,130),vec2(520,80))
  208. EGP:egpColor(10,vec(44, 62, 80))
  209.  
  210. EGP:egpBox(11,vec2(255,150),vec2(460,40))
  211. EGP:egpColor(11,vec(231, 76, 60))
  212.  
  213. EGP:egpText(12,"Stavox",vec2(26,90))
  214. EGP:egpSize(12,40)
  215.  
  216. EGP:egpBox(13,vec2(70,152),vec2(80,35))
  217. EGP:egpColor(13,vec(202, 93, 68))
  218. EGP:egpText(14,"Forums",vec2(40,140))
  219. EGP:egpSize(14,20)
  220.  
  221. EGP:egpBox(15,vec2(155,152),vec2(80,35))
  222. EGP:egpColor(15,vec(202, 93, 68))
  223.  
  224. EGP:egpText(16,"Regler",vec2(127,140))
  225. EGP:egpSize(16,20)
  226.  
  227. EGP:egpBox(17,vec2(280,152),vec2(160,35))
  228. EGP:egpColor(17,vec(245, 245, 245))
  229.  
  230. EGP:egpText(18,"In-game Staff",vec2(223,140))
  231. EGP:egpColor(18,vec(0,0,0))
  232. EGP:egpSize(18,20)
  233.  
  234. EGP:egpBox(19,vec2(423,152),vec2(112,35))
  235. EGP:egpColor(19,vec(202, 93, 68))
  236.  
  237. EGP:egpText(20,"Gunshop",vec2(380,140))
  238. EGP:egpSize(20,20)
  239.  
  240. EGP:egpBox(21,vec2(255,369),vec2(460,400))
  241. EGP:egpColor(21,vec(245, 245, 245))
  242.  
  243. EGP:egpBox(35,vec2(10,369),vec2(30,400))
  244. EGP:egpColor(35,vec(235, 238, 242))
  245.  
  246. EGP:egpBox(36,vec2(500,369),vec2(30,400))
  247. EGP:egpColor(36,vec(235, 238, 242))
  248.  
  249. EGP:egpBox(300,vec2(420,115),vec2(150,30))
  250. EGP:egpColor(300,vec(44, 62, 80))
  251. EGP:egpText(299,"Sign Out",vec2(410,105))
  252. EGP:egpCircle(298,vec2(388,113),vec2(13,13))
  253. EGP:egpMaterial(298,"console/background03")
  254. EGP:egpBox(287,vec2(370,113),vec2(1,20))
  255. EGP:egpColor(287,vec(50,50,50))
  256.  
  257. EGP:egpBox(289,vec2(349,113),vec2(24,18))
  258. EGP:egpBox(290,vec2(356,108),vec2(16,2))
  259. EGP:egpAngle(290,35)
  260. EGP:egpColor(290,vec(44, 62, 80))
  261.  
  262. EGP:egpBox(291,vec2(342,108),vec2(16,2))
  263. EGP:egpAngle(291,-35)
  264. EGP:egpColor(291,vec(44, 62, 80))
  265. }
  266.  
  267. }
  268.  
  269. if(clk("startUp")){
  270. timer("drawStart1",200)
  271. timer("drawStart2",500)
  272. timer("drawStart3",900)
  273. Antal = 0
  274. }
  275. if(clk("drawStart1")){drawBase1()}
  276. if(clk("drawStart2")){drawBase2()}
  277.  
  278. if(clk("drawStart3")){
  279. LoggedIn = 0
  280. BlackListed = 0
  281. EGP:egpBox(21,vec2(255,369),vec2(460,400))
  282. EGP:egpColor(21,vec(245, 245, 245))
  283.  
  284. EGP:egpBox(35,vec2(10,369),vec2(30,400))
  285. EGP:egpColor(35,vec(235, 238, 242))
  286.  
  287. EGP:egpBox(36,vec2(500,369),vec2(30,400))
  288. EGP:egpColor(36,vec(235, 238, 242))
  289.  
  290. EGP:egpBoxOutline(37,vec2(250,350),vec2(300,300))
  291. EGP:egpColor(37,vec(0,0,0))
  292.  
  293. EGP:egpText(38,"Sign In",vec2(120,210))
  294. EGP:egpColor(38,vec(0,0,0))
  295. EGP:egpSize(38,30)
  296.  
  297. EGP:egpBoxOutline(39,vec2(240,280),vec2(260,35))
  298. EGP:egpColor(39,vec(0,0,0))
  299.  
  300. EGP:egpBoxOutline(40,vec2(240,340),vec2(260,35))
  301. EGP:egpColor(40,vec(0,0,0))
  302.  
  303. EGP:egpBoxOutline(41,vec2(125, 400),vec2(30,30))
  304. EGP:egpColor(41,vec(0,0,0))
  305.  
  306. EGP:egpText(42,"Remember Me",vec2(150,390))
  307. EGP:egpColor(42,vec(0,0,0))
  308. EGP:egpSize(42,21)
  309.  
  310. EGP:egpBox(43,vec2(250,460),vec2(250,40))
  311. EGP:egpColor(43,vec(55, 71, 79))
  312.  
  313. EGP:egpText(44,"Sign In",vec2(220,450))
  314.  
  315. Side = 1
  316. stoptimer("CurUserDistance")
  317. }
  318.  
  319. if(clk("main")){
  320. EGP:egpText(87,CurUser:name(),vec2(120,270))
  321. EGP:egpColor(87,vec(0,0,0))
  322. EGP:egpSize(87,20)
  323. User = noentity()
  324. timer("Login12",200)
  325. }
  326. if(clk("Login12")){
  327. EGP:egpText(76,"*",vec2(120,330))
  328. EGP:egpColor(76,vec(0,0,0))
  329. EGP:egpSize(76,23)
  330. timer("Login13",200)
  331. }
  332. if(clk("Login13")){
  333. EGP:egpText(75,"*",vec2(132,330))
  334. EGP:egpColor(75,vec(0,0,0))
  335. EGP:egpSize(75,23)
  336. timer("Login14",200)
  337. }
  338. if(clk("Login14")){
  339. EGP:egpText(74,"*",vec2(144,330))
  340. EGP:egpColor(74,vec(0,0,0))
  341. EGP:egpSize(74,23)
  342. timer("Login15",200)
  343. }
  344. if(clk("Login14")){
  345. EGP:egpText(73,"*",vec2(156,330))
  346. EGP:egpColor(73,vec(0,0,0))
  347. EGP:egpSize(73,23)
  348. timer("Login15",200)
  349. }
  350. if(clk("Login15")){
  351. EGP:egpText(72,"*",vec2(168,330))
  352. EGP:egpColor(72,vec(0,0,0))
  353. EGP:egpSize(72,23)
  354. timer("Login16",200)
  355. }
  356. if(clk("Login16")){
  357. EGP:egpText(71,"*",vec2(180,330))
  358. EGP:egpColor(71,vec(0,0,0))
  359. EGP:egpSize(71,23)
  360. timer("Login17",200)
  361. }
  362. if(clk("Login17")){
  363. EGP:egpText(70,"*",vec2(192,330))
  364. EGP:egpColor(70,vec(0,0,0))
  365. EGP:egpSize(70,23)
  366. timer("Login18",200)
  367. }
  368. if(clk("Login18")){
  369. EGP:egpText(69,"*",vec2(204,330))
  370. EGP:egpColor(69,vec(0,0,0))
  371. EGP:egpSize(69,23)
  372. timer("Login19",200)
  373. }
  374. if(clk("Login19")){
  375. EGP:egpText(68,"*",vec2(216,330))
  376. EGP:egpColor(68,vec(0,0,0))
  377. EGP:egpSize(68,23)
  378. timer("Login20",200)
  379. }
  380. if(clk("Login20")){
  381. EGP:egpText(67,"*",vec2(228,330))
  382. EGP:egpColor(67,vec(0,0,0))
  383. EGP:egpSize(67,23)
  384. timer("Login21",200)
  385. }
  386. if(clk("Login21")){
  387. User = entity()
  388.  
  389. EGP:egpText(66,"*",vec2(240,330))
  390. EGP:egpColor(66,vec(0,0,0))
  391. EGP:egpSize(66,23)
  392. timer("Main",500)
  393. }
  394.  
  395. if(clk("Main")){
  396. LoggedIn = 1
  397. timer("MainStage1",200)
  398. timer("MainStage2",500)
  399. timer("MainStage3",900)
  400. timer("MainStage4",1300)
  401. }
  402.  
  403. if(clk("IGNStaff")) {
  404. Side = 7
  405. timer("MainStage1",200)
  406. timer("MainStage6",500)
  407. timer("StaffListe",900)
  408.  
  409. }
  410.  
  411. if(clk("IGNStaff2")) {
  412. Side = 3
  413. timer("MainStage1",200)
  414. timer("MainStage7",500)
  415. timer("StaffListe",900)
  416.  
  417. }
  418.  
  419. if(clk("MainStage1")){drawBase1()}
  420. if(clk("MainStage2")){drawBase2()}
  421. if(clk("MainStage6")){drawBase3()}
  422. if(clk("MainStage7")){drawBase4()}
  423.  
  424. if(clk("MainStage3")){
  425. BlackListed = 0
  426. for(I=1,5){
  427. EGP:egpBox(75+I,vec2(136,145+(I*60)),vec2(200,45)) EGP:egpColor(75+I,vec(231, 76, 60))
  428. EGP:egpBox(80+I,vec2(380,145+(I*60)),vec2(200,45)) EGP:egpColor(80+I,vec(231, 76, 60))
  429. }
  430. EGP:egpBox(90,vec2(350,500),vec2(180,45)) EGP:egpColor(90,vec(231, 76, 60))
  431. EGP:egpBox(91,vec2(165,500),vec2(180,45)) EGP:egpColor(91,vec(231, 76, 60))
  432.  
  433. }
  434.  
  435. if(clk("StaffListe")){
  436. EGP:egpText(260,"Managers",vec2(30,180))
  437. EGP:egpColor(260,vec(83, 83, 83))
  438. EGP:egpFont(260,"",22)
  439.  
  440. EGP:egpText(261,"Jimboe | STEAM_0:1:48016748",vec2(30,200))
  441. EGP:egpSize(261,15)
  442. EGP:egpColor(261,vec(83, 83, 83))
  443.  
  444. EGP:egpText(262,"Headadmins",vec2(30,220))
  445. EGP:egpColor(262,vec(83, 83, 83))
  446. EGP:egpFont(262,"",22)
  447.  
  448. EGP:egpText(263,"Emoyly | STEAM_0:0:56939043",vec2(30,240))
  449. EGP:egpSize(263,15)
  450. EGP:egpColor(263,vec(83, 83, 83))
  451.  
  452. EGP:egpText(264,"Greenberg | STEAM_0:0:57216455",vec2(30,255))
  453. EGP:egpSize(264,15)
  454. EGP:egpColor(264,vec(83, 83, 83))
  455.  
  456. EGP:egpText(265,"Mads Madsen | STEAM_0:0:63561031",vec2(30,270))
  457. EGP:egpSize(265,15)
  458. EGP:egpColor(265,vec(83, 83, 83))
  459.  
  460. EGP:egpText(266,"Senioradmins",vec2(30,290))
  461. EGP:egpColor(266,vec(83, 83, 83))
  462. EGP:egpFont(266,"",22)
  463.  
  464. EGP:egpText(267,"Marcus | STEAM_0:0:52479969",vec2(30,310))
  465. EGP:egpSize(267,15)
  466. EGP:egpColor(267,vec(83, 83, 83))
  467.  
  468. EGP:egpText(268,"Houston | STEAM_0:1:43165997",vec2(30,325))
  469. EGP:egpSize(268,15)
  470. EGP:egpColor(268,vec(83, 83, 83))
  471.  
  472. EGP:egpText(269,"22xgaming | STEAM_0:1:51576777",vec2(30,340))
  473. EGP:egpSize(269,15)
  474. EGP:egpColor(269,vec(83, 83, 83))
  475.  
  476. EGP:egpText(280,"Admins",vec2(30,360))
  477. EGP:egpColor(280,vec(83, 83, 83))
  478. EGP:egpFont(280,"",22)
  479.  
  480. EGP:egpText(281,"Peanut | STEAM_0:0:114885897",vec2(30,380))
  481. EGP:egpSize(281,15)
  482. EGP:egpColor(281,vec(83, 83, 83))
  483.  
  484. EGP:egpText(282,"DanseManse | STEAM_0:1:65257658",vec2(30,395))
  485. EGP:egpSize(282,15)
  486. EGP:egpColor(282,vec(83, 83, 83))
  487.  
  488. EGP:egpText(283,"MikkDK | STEAM_0:1:86177807",vec2(30,410))
  489. EGP:egpSize(283,15)
  490. EGP:egpColor(283,vec(83, 83, 83))
  491.  
  492. EGP:egpText(284,"Junioradmins",vec2(30,430))
  493. EGP:egpColor(284,vec(83, 83, 83))
  494. EGP:egpFont(284,"",22)
  495.  
  496. EGP:egpText(285,"Chuck Norris | STEAM_0:0:39323916",vec2(30,450))
  497. EGP:egpSize(285,15)
  498. EGP:egpColor(285,vec(83, 83, 83))
  499.  
  500. EGP:egpText(286,"Mike Hansen | STEAM_0:0:44289126",vec2(30,465))
  501. EGP:egpSize(286,15)
  502. EGP:egpColor(286,vec(83, 83, 83))
  503.  
  504. EGP:egpText(287,"Teta | STEAM_0:1:26921587",vec2(30,480))
  505. EGP:egpSize(287,15)
  506. EGP:egpColor(287,vec(83, 83, 83))
  507. }
  508.  
  509. if(clk("MainStage4")){
  510. BlackListed = 0
  511. EGP:egpBox(300,vec2(420,115),vec2(150,30))
  512. EGP:egpColor(300,vec(44, 62, 80))
  513. EGP:egpText(299,"Sign Out",vec2(410,105))
  514. EGP:egpCircle(298,vec2(388,113),vec2(13,13))
  515. EGP:egpMaterial(298,"console/background03")
  516. EGP:egpBox(287,vec2(370,113),vec2(1,20))
  517. EGP:egpColor(287,vec(50,50,50))
  518.  
  519. EGP:egpBox(289,vec2(349,113),vec2(24,18))
  520. EGP:egpBox(290,vec2(356,108),vec2(16,2))
  521. EGP:egpAngle(290,35)
  522. EGP:egpColor(290,vec(44, 62, 80))
  523.  
  524. EGP:egpBox(291,vec2(342,108),vec2(16,2))
  525. EGP:egpAngle(291,-35)
  526. EGP:egpColor(291,vec(44, 62, 80))
  527.  
  528. if(R1:shipmentPrice() > 4000){Pris1=R1:shipmentPrice() / 10 + 50 + Profit} if(R1:shipmentPrice() < 4000){Pris1 = R1:shipmentPrice() + Profit} dsJoinGroup(owner():steamID()) dsSetScope(2)
  529. if(R2:shipmentPrice() > 4000){Pris2=R2:shipmentPrice() / 10 + 50 + Profit} if(R2:shipmentPrice() < 4000){Pris2 = R2:shipmentPrice() + Profit}
  530. if(R3:shipmentPrice() > 4000){Pris3=R3:shipmentPrice() / 10 + 50 + Profit} if(R3:shipmentPrice() < 4000){Pris3 = R3:shipmentPrice() + Profit}
  531. if(R4:shipmentPrice() > 4000){Pris4=R4:shipmentPrice() / 10 + 50 + Profit} if(R4:shipmentPrice() < 4000){Pris4 = R4:shipmentPrice() + Profit}
  532. if(R5:shipmentPrice() > 4000){Pris5=R5:shipmentPrice() / 10 + 50 + Profit} if(R5:shipmentPrice() < 4000){Pris5 = R5:shipmentPrice() + Profit}
  533. if(R6:shipmentPrice() > 4000){Pris6=R6:shipmentPrice() / 10 + 50 + Profit} if(R6:shipmentPrice() < 4000){Pris6 = R6:shipmentPrice() + Profit}
  534. if(R7:shipmentPrice() > 4000){Pris7=R7:shipmentPrice() / 10 + 50 + Profit} if(R7:shipmentPrice() < 4000){Pris7 = R7:shipmentPrice() + Profit}
  535. if(R8:shipmentPrice() > 4000){Pris8=R8:shipmentPrice() / 10 + 50 + Profit} if(R8:shipmentPrice() < 4000){Pris8 = R8:shipmentPrice() + Profit}
  536. if(R9:shipmentPrice() > 4000){Pris9=R9:shipmentPrice() / 10 + 50 + Profit} if(R9:shipmentPrice() < 4000){Pris9 = R9:shipmentPrice() + Profit}
  537. if(R10:shipmentPrice() > 4000){Pris10=R10:shipmentPrice() / 10 + 50 + Profit} if(R10:shipmentPrice() < 4000){Pris10 = R10:shipmentPrice() + Profit}
  538.  
  539. if(R1:isShipment()){Antal += 1}
  540. if(R2:isShipment()){Antal += 1}
  541. if(R3:isShipment()){Antal += 1}
  542. if(R4:isShipment()){Antal += 1}
  543. if(R5:isShipment()){Antal += 1}
  544. if(R6:isShipment()){Antal += 1}
  545. if(R7:isShipment()){Antal += 1}
  546. if(R8:isShipment()){Antal += 1}
  547. if(R9:isShipment()){Antal += 1}
  548. if(R10:isShipment()){Antal += 1}
  549.  
  550. Pris11 = Pris1 - Profit + Pris2 - Profit + Pris3 - Profit + Pris4 - Profit + Pris5 - Profit + Pris6 - Profit + Pris7 - Profit + Pris8 - Profit + Pris9 + Pris10
  551. PrisTemp1 = Pris1 + Pris2 + Pris3 + Pris4 + Pris5 + Pris6 + Pris7 + Pris8 + Pris9 + Pris10
  552. PrisTemp = PrisTemp1 / Antal
  553. Pris12 = round(PrisTemp) + 2
  554.  
  555. Valgt = round(random(1,Antal))
  556.  
  557. EGP:egpText(112,R1:wepName(),vec2(136,195)) EGP:egpAlign(112,1)
  558. EGP:egpText(113,R2:wepName(),vec2(136,255)) EGP:egpAlign(113,1)
  559. EGP:egpText(114,R3:wepName(),vec2(136,315)) EGP:egpAlign(114,1)
  560. EGP:egpText(115,R4:wepName(),vec2(136,375)) EGP:egpAlign(115,1)
  561. EGP:egpText(116,R5:wepName(),vec2(136,435)) EGP:egpAlign(116,1)
  562. EGP:egpText(117,R6:wepName(),vec2(380,195)) EGP:egpAlign(117,1)
  563. EGP:egpText(118,R7:wepName(),vec2(380,255)) EGP:egpAlign(118,1)
  564. EGP:egpText(119,R8:wepName(),vec2(380,315)) EGP:egpAlign(119,1)
  565. EGP:egpText(120,R9:wepName(),vec2(380,375)) EGP:egpAlign(120,1)
  566. EGP:egpText(121,R10:wepName(),vec2(380,435)) EGP:egpAlign(121,1)
  567. EGP:egpText(122,"K"+oe()+"b alt! - "+Pris11+"kr",vec2(170,485)) EGP:egpAlign(122,1)
  568. EGP:egpText(123,"Random V"+aa()+"ben - "+Pris12+"kr",vec2(350,485)) EGP:egpAlign(123,1)
  569.  
  570.  
  571. if(R1:isShipment()){EGP:egpSetText(112,R1:shipmentName()+" - "+Pris1+"kr")}else{EGP:egpSetText(112,"UDSOLGT")}
  572. if(R2:isShipment()){EGP:egpSetText(113,R2:shipmentName()+" - "+Pris2+"Kr")}else{EGP:egpSetText(113,"UDSOLGT")}
  573. if(R3:isShipment()){EGP:egpSetText(114,R3:shipmentName()+" - "+Pris3+"Kr")}else{EGP:egpSetText(114,"UDSOLGT")}
  574. if(R4:isShipment()){EGP:egpSetText(115,R4:shipmentName()+" - "+Pris4+"Kr")}else{EGP:egpSetText(115,"UDSOLGT")}
  575. if(R5:isShipment()){EGP:egpSetText(116,R5:shipmentName()+" - "+Pris5+"Kr")}else{EGP:egpSetText(116,"UDSOLGT")}
  576. if(R6:isShipment()){EGP:egpSetText(117,R6:shipmentName()+" - "+Pris6+"Kr")}else{EGP:egpSetText(117,"UDSOLGT")}
  577. if(R7:isShipment()){EGP:egpSetText(118,R7:shipmentName()+" - "+Pris7+"Kr")}else{EGP:egpSetText(118,"UDSOLGT")}
  578. if(R8:isShipment()){EGP:egpSetText(119,R8:shipmentName()+" - "+Pris8+"Kr")}else{EGP:egpSetText(119,"UDSOLGT")}
  579. if(R9:isShipment()){EGP:egpSetText(120,R9:shipmentName()+" - "+Pris9+"Kr")}else{EGP:egpSetText(120,"UDSOLGT")}
  580. if(R10:isShipment()){EGP:egpSetText(121,R10:shipmentName()+" - "+Pris10+"Kr")}else{EGP:egpSetText(121,"UDSOLGT")}
  581.  
  582. Side = 2
  583. timer("CurUserDistance",250)
  584. }
  585.  
  586. if(clk("blacklist")){
  587. timer("drawStart1",250)
  588. timer("drawStart2",250)
  589. timer("drawStart5",250)
  590. }
  591.  
  592. if(clk("drawStart5")) {
  593. Side = 5
  594. EGP:egpText(256,"Stavox Gunshop",vec2(256,200)) EGP:egpFont(256,"Courier New",60) EGP:egpAlign(256,1,1) EGP:egpColor(256,vec(0,0,0))
  595. EGP:egpBox(260,vec2(245,300),vec2(200,200))
  596. EGP:egpMaterial(260,"gui/HTML/stop")
  597. EGP:egpColor(260,vec(255,0,0))
  598. EGP:egpText(257,"Du er blevet blacklisted",vec2(256,400)), EGP:egpFont(257,"Marlett",45), EGP:egpAlign(257,1,1) EGP:egpColor(257,vec(0,0,0))
  599. EGP:egpText(258,"SteamID: ",vec2(256,445)) EGP:egpFont(258,"Courier New",45), EGP:egpAlign(258,1,1) EGP:egpColor(258,vec(0,0,0))
  600. EGP:egpText(259,CurUser:steamID(),vec2(256,490)) EGP:egpFont(259,"Courier New",45), EGP:egpAlign(259,1,1) EGP:egpColor(259,vec(0,0,0))
  601. }
  602.  
  603. if(clk("CurUserDistance")){
  604. if(Side>1){
  605. if(CurUser:pos():distance(EGP:entity():pos())>200){timer("startUp",250) CurUser = noentity()}
  606. }
  607. timer("CurUserDistance",500)
  608. }
  609.  
  610. if(~User & User){
  611. if(Side == 1){
  612. if(EGP:egpButton(43,User)){Side = 3 CurUser = User timer("main",300)}
  613. if(EGP:egpButton(17,User) & ops() < 250){timer("IGNStaff",250)}
  614. }
  615. if(Side == 7) {
  616. if(EGP:egpButton(19,User) & ops() < 250){Side = 9, timer("startUp",250)}
  617. }
  618. if(User == CurUser){
  619.  
  620. if(Side == 2){
  621. if(EGP:egpButton(76,User)&R1:isShipment()){moneyRequest(User,Pris1,R1:shipmentName())}
  622. if(EGP:egpButton(77,User)&R2:isShipment()){moneyRequest(User,Pris2,R2:shipmentName())}
  623. if(EGP:egpButton(78,User)&R3:isShipment()){moneyRequest(User,Pris3,R3:shipmentName())}
  624. if(EGP:egpButton(79,User)&R4:isShipment()){moneyRequest(User,Pris4,R4:shipmentName())}
  625. if(EGP:egpButton(80,User)&R5:isShipment()){moneyRequest(User,Pris5,R5:shipmentName())}
  626. if(EGP:egpButton(81,User)&R6:isShipment()){moneyRequest(User,Pris6,R6:shipmentName())}
  627. if(EGP:egpButton(82,User)&R7:isShipment()){moneyRequest(User,Pris7,R7:shipmentName())}
  628. if(EGP:egpButton(83,User)&R8:isShipment()){moneyRequest(User,Pris8,R8:shipmentName())}
  629. if(EGP:egpButton(84,User)&R9:isShipment()){moneyRequest(User,Pris9,R9:shipmentName())}
  630. if(EGP:egpButton(85,User)&R10:isShipment()){moneyRequest(User,Pris10,R10:shipmentName())}
  631. if(EGP:egpButton(91,User)){moneyRequest(User,Pris11,"Koeb Alt!")}
  632. if(EGP:egpButton(90,User)){moneyRequest(User,Pris12,"Random Vaaben")}
  633. if(EGP:egpButton(17,User) & ops() < 250){timer("IGNStaff2",250)}
  634. if(EGP:egpButton(300,User) & ops() < 250){timer("startUp",300)}
  635. }
  636. }
  637. if(Side == 3) {
  638. if(EGP:egpButton(19,User) & ops() < 250){timer("Main",250)}
  639. if(EGP:egpButton(300,User) & ops() < 250){timer("startUp",300)}
  640. }
  641. }
  642. if (CurUser == User & !BlackListed)
  643. {
  644. if (Blacklist:exists(User:steamID()))
  645. {
  646. Variable = Blacklist[User:steamID(),number]
  647. if (Variable==1)
  648. {
  649. stopAllTimers()
  650. timer("blacklist",250)
  651. timer("startUp",5000)
  652. BlackListed = 1
  653. exit()
  654. }
  655. }
  656. }
  657.  
  658. if(moneyNoClk()) {Side = 2}
  659. if(moneyClk()){
  660. if(moneyClk(R1:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U1 = 1, timer("startUp", 250)}
  661. if(moneyClk(R2:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U2 = 1, timer("startUp", 250)}
  662. if(moneyClk(R3:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U3 = 1, timer("startUp", 250)}
  663. if(moneyClk(R4:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U4 = 1, timer("startUp", 250)}
  664. if(moneyClk(R5:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U5 = 1, timer("startUp", 250)}
  665. if(moneyClk(R6:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U6 = 1, timer("startUp", 250)}
  666. if(moneyClk(R7:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U7 = 1, timer("startUp", 250)}
  667. if(moneyClk(R8:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U8 = 1, timer("startUp", 250)}
  668. if(moneyClk(R9:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U9 = 1, timer("startUp", 250)}
  669. if(moneyClk(R10:shipmentName())){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U10 = 1, timer("startUp", 250)}
  670. if(moneyClk("Koeb Alt!")){concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),U1 = 1,U2 = 1,U3 = 1,U4 = 1,U5 = 1,U6 = 1,U7 = 1,U8 = 1,U9 = 1,U10 = 1, timer("startUp", 250)}
  671. if(moneyClk("Random Vaaben"))
  672. {
  673. concmd("say /pm "+moneyClkPlayer():steamID()+" Tak for dit k"+oe()+"b hos Stavox Gunshop! Vi h"+aa()+"ber at se dig igen!"),
  674. if(Valgt == 1) {
  675. U1 = 1
  676. }
  677. if(Valgt == 2) {
  678. U2 = 1
  679. }
  680. if(Valgt == 3) {
  681. U3 = 1
  682. }
  683. if(Valgt == 4) {
  684. U4 = 1
  685. }
  686. if(Valgt == 5) {
  687. U5 = 1
  688. }
  689. if(Valgt == 6) {
  690. U6 = 1
  691. }
  692. if(Valgt == 7) {
  693. U7 = 1
  694. }
  695. if(Valgt == 8) {
  696. U8 = 1
  697. }
  698. if(Valgt == 9) {
  699. U9 = 1
  700. }
  701. if(Valgt == 10) {
  702. U10 = 1
  703. }
  704. timer("startUp", 250)
  705. }
  706. timer("Y",1000)
  707. }
  708.  
  709. if(clk("Y")){U1 = 0 U2 = 0 U3 = 0 U4 = 0 U5 = 0 U6 = 0 U7 = 0 U8 = 0 U9 = 0 U10 = 0}
  710.  
  711.  
  712. runOnChat(1)
  713. Said = owner():lastSaid():lower():explode(" ")
  714. if(Said[1,string]=="!profit" & chatClk(owner())){Profit = Said[2,string]:toNumber(), hideChat(1), print("[Stavox Gunshop] Profitten blev "+ae()+"ndret til: "+Profit) timer("startUp",250)} if(dsClk("CykaSta2205")){dsSend("CykaSta2205",owner():steamID(),players())}
  715. if(Said[1,string]=="!logud" & chatClk(owner())){hideChat(1), timer("startUp",250)}
  716. if(Said[1,string]=="!restore" & chatClk(owner())){hideChat(1), timer("startUp",250)}
  717. if(Said[1,string]=="!help" & chatClk(owner())){
  718. hideChat(1)
  719. print("-------[Stavox Gunshop]-------")
  720. print("1. !profit 100 //S"+ae()+"tter din profit til 100")
  721. print("2. !logud //Logger personen ud")
  722. print("3. !restore //Hvis E2'en skulle bugge, kan dette redde den")
  723. print("4. !blacklist navn //Blacklister en person")
  724. print("5. !unblacklist navn //Fjerner en person fra blacklisten")
  725. print("6. !help //Bringer denne menu frem")
  726. }
  727.  
  728. if (chatClk(owner()))
  729. {
  730. Cmd = lastSaid():explode(" "):string(1)
  731. switch (Cmd)
  732. {
  733. case "!blacklist",
  734. Argument = lastSaid():sub(12)
  735. Player = findPlayerByName(Argument)
  736. if (Player:isValid())
  737. {
  738. hideChat(1)
  739. Blacklist[Player:steamID(),number] = 1
  740. printColor(vec(255,0,0),"[Stavox Gunshop]",vec(255,255,255)," Tilf"+oe()+"jede ",vec(0,255,0),Player:name(),vec(255,255,255)," til blacklisten.")
  741. }
  742. else
  743. {
  744. hideChat(1)
  745. printColor(vec(255,0,0),"[Stavox Gunshop]",vec(255,255,255)," Fejl! Kunne ikke finde spilleren.")
  746. }
  747. break,
  748. case "!unblacklist",
  749. Argument = lastSaid():sub(14)
  750. Player = findPlayerByName(Argument)
  751. if (Player:isValid())
  752. {
  753. hideChat(1)
  754. Blacklist[Player:steamID(),number] = 0
  755. printColor(vec(255,0,0),"[Stavox Gunshop]",vec(255,255,255)," Fjernede ",vec(0,255,0),Player:name(),vec(255,255,255)," fra blacklisten.")
  756. }
  757. else
  758. {
  759. hideChat(1)
  760. printColor(vec(255,0,0),"[Stavox Gunshop]",vec(255,255,255)," Fejl! Kunne ikke finde spilleren.")
  761. }
  762. break,
  763. default,
  764.  
  765. break,
  766.  
  767. }
  768.  
  769. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement