Guest User

Untitled

a guest
Jun 30th, 2021
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.10 KB | None | 0 0
  1. @name X I T E X
  2. @inputs [Ctrl, EGP]:wirelink User:entity [R1, R2, R3, R4, R5, R6]:entity
  3. @outputs
  4. @persist [CurUser]:entity
  5. @persist [FinalName, FinalPas]:array
  6. @persist [Name, Pas]:string
  7. @persist [Cust, Omsat, Sold, Earned, Profit, Price, S, Blckl, Las]:number
  8. @persist [Settings, Blacklist, W]:table CI CY
  9. @trigger
  10. if(duped() | dupefinished()){reset()}
  11.  
  12. OPS = ops()
  13. CPU=cpuUsage()*1000000
  14. CLKNAME = clkName()
  15.  
  16. if(first())
  17. {
  18. runOnChat(1)
  19.  
  20. Settings["Blacklist.Price",number] = 20000
  21. Settings["Hired.Discount", number] = 15
  22. Settings["Gang.Discount", number] = 10
  23.  
  24. Blacklist["Player", table] = table()
  25. Blacklist["Gang", table] = table(
  26. "Big Brains" = 1
  27. )
  28.  
  29. function number wirelink:egpButton(Idx:number,Ply:entity)
  30. {
  31. TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
  32. BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
  33. Cur = This:egpCursor(Ply) return inrange(Cur, TL, BR) exit()
  34. }
  35.  
  36. function entity tx_FindPly(Str:string){
  37. return Str:sub(0,7) == "STEAM_0" ? findPlayerBySteamID(Str) : findPlayerByName(Str)
  38. }
  39.  
  40. function string moneyFormat(M:number){ #Don't blame me for shit.
  41.  
  42. local Q = M < 1000000 # No need to do math?
  43. local P = Q ? "^(-?%d+)(%d%d%d)" : "^(-?%d+)(%d%d%d)(%d%d%d)"
  44. local N = Q ? "%1,%2" : "%1,%2,%3"
  45.  
  46. return M:toString():replaceRE(P, N) #Regular Expressions // Yaay
  47.  
  48. }
  49.  
  50. function number entity:getWepPrice(){
  51. if(!This:isShipment()){
  52. return 0
  53. }
  54.  
  55. local Price=This:shipmentPrice()
  56.  
  57. return Price+(Blckl*Settings["Blacklist.Price", number])+Profit
  58. }
  59.  
  60. function string entity:getWepName(){
  61. if(!This:isShipment()){
  62. return ""
  63. }
  64.  
  65. return This:shipmentName():replace(" Shotgun", ""):sub(0, 8)
  66. }
  67.  
  68. function message(S:string){printColor(vec(255),"[ ",vec(34,96,180),"X I T E X",vec(255)," ] ",S)}
  69.  
  70. function number shipmentInStock()
  71. {
  72. return (R1:isShipment() | R2:isShipment() | R3:isShipment() | R4:isShipment() | R5:isShipment() | R6:isShipment())
  73. }
  74.  
  75. function void wirelink:drawLogin()
  76. {
  77.  
  78. W:clear()
  79. Price = 0
  80. CurUser=noentity()
  81.  
  82. S=1
  83. This:egpClear()
  84. This:egpBox(1, vec2(256,256), vec2(512,512)) This:egpColor(1,vec(112,155,139)) This:egpMaterial(1,"vgui/appchooser/background_hl2")
  85. This:egpBox(100, vec2(256,390), vec2(240,50)) This:egpColor(100, vec(10,10,10))
  86. This:egpBox(2, vec2(256,256), vec2(512,512)) This:egpColor(2, vec4(30,30,300, 240)) #30,30,30
  87. This:egpBox(3, vec2(256,256), vec2(512,512)) This:egpMaterial(3, "gui/gradient_down") This:egpColor(3, vec4(58,100,61,70))
  88. This:egpBox(4, vec2(256,256), vec2(512,512)) This:egpMaterial(4, "gui/gradient_up") This:egpColor(4, vec4(77,191,172,70)) #255, 153, 102
  89.  
  90. This:egpBox(5, vec2(56,256), vec2(50,200)) This:egpColor(5, vec(51,51,51))
  91. This:egpBoxOutline(6, vec2(256,256), vec2(512,512)) This:egpSize(6,5)
  92. This:egpBox(7, vec2(186,181), vec2(200,50)) This:egpColor(7, vec4(77,191,172,100))
  93. This:egpText(8, "X I T E X", vec2(56,256)) This:egpAlign(8,1,1) This:egpFont(8,"Courier New",30) This:egpAngle(8,-90)
  94. This:egpText(9,"NM", vec2(109,181)) This:egpAlign(9,1,1) This:egpFont(9,"Courier New",25)
  95. This:egpBox(11, vec2(136,181), vec2(2,25))
  96. This:egpBox(12, vec2(186,236), vec2(200,50)) This:egpColor(12, vec4(77,191,172,100))
  97. This:egpText(13,"PW", vec2(109,236)) This:egpAlign(13,1,1) This:egpFont(13,"Courier New",25)
  98. This:egpBox(14, vec2(136,236), vec2(2,25))
  99. This:egpBox(15, vec2(186,291), vec2(200,50)) This:egpColor(15, vec4(51,51,51,250))
  100. This:egpText(16,"LOGIN", vec2(126,292)) This:egpAlign(16,1,1) This:egpFont(16,"Courier New",25)
  101. This:egpBox(17, vec2(186,338), vec2(200,36)) This:egpColor(17, vec4(51,51,51,250))
  102. This:egpText(18, "CREDITS", vec2(138,340)) This:egpAlign(18,1,1) This:egpFont(18,"Courier New",25)
  103.  
  104. X=145
  105. This:egpPoly(19, vec2(287+X,304), vec2(310+X,304), vec2(277+X,252), vec2(266+X,270))
  106. This:egpColor(19, vec(114,117,117))
  107. This:egpPoly(20, vec2(323+X,304), vec2(347+X,304), vec2(295+X,221), vec2(284+X,240))
  108. This:egpColor(20, vec(114,117,117))
  109. This:egpPoly(21, vec2(207+X,304), vec2(224+X,274), vec2(231+X,274), vec2(214+X,304))
  110. This:egpColor(21, vec(189,191,193))
  111. This:egpPoly(22, vec2(231+X,274), vec2(173+X,180), vec2(165+X,180), vec2(224+X,274))
  112. This:egpColor(22, vec(189,191,193))
  113. This:egpPoly(23, vec2(214+X,304), vec2(237+X,304), vec2(308+X,180), vec2(284+X,180))
  114. This:egpColor(23, vec(77,191,172))
  115. This:egpPoly(24, vec2(231+X,274), vec2(173+X,180), vec2(196+X,180), vec2(243+X,253))
  116. This:egpColor(24, vec(77,191,172))
  117. This:egpPoly(25, vec2(243+X,253), vec2(239+X,247), vec2(242+X,242), vec2(249+X,242))
  118. This:egpColor(25, vec(189,191,193))
  119. This:egpPoly(26, vec2(249+X,242), vec2(210+X,180), vec2(204+X,180), vec2(242+X,242))
  120. This:egpColor(26, vec(189,191,193))
  121. This:egpPoly(27, vec2(210+X,180), vec2(234+X,180), vec2(261+X,223), vec2(249+X,242))
  122. This:egpColor(27, vec(77,191,172))
  123. This:egpPoly(28, vec2(285+X,180), vec2(277+X,180), vec2(257+X,217), vec2(261+X,223))
  124. This:egpColor(28, vec(189,191,193))
  125. }
  126. function void wirelink:drawBuyGunz()
  127. {
  128. Las= 0
  129. S=2
  130. This:egpClear()
  131. This:egpBox(1, vec2(256,256), vec2(512,512)) This:egpColor(1,vec(112,155,139)) This:egpMaterial(1,"vgui/appchooser/background_hl2")
  132. This:egpBox(100, vec2(256,390), vec2(240,50)) This:egpColor(100, vec(10,10,10))
  133. This:egpBox(2, vec2(256,256), vec2(512,512)) This:egpColor(2, vec4(30,30,300, 240)) #30,30,30
  134. This:egpBox(3, vec2(256,256), vec2(512,512)) This:egpMaterial(3, "gui/gradient_down") This:egpColor(3, vec4(58,100,61,70))
  135. This:egpBox(4, vec2(256,256), vec2(512,512)) This:egpMaterial(4, "gui/gradient_up") This:egpColor(4, vec4(77,191,172,70)) #255, 153, 102
  136. This:egpBoxOutline(5, vec2(256,256), vec2(512,512)) This:egpSize(5,5)
  137. #Kobs Boxse
  138. This:egpBox(6, vec2(256,256), vec2(250,490)) This:egpColor(6, vec(51,51,51))
  139. This:egpBox(7, vec2(256,56), vec2(250,40)) This:egpColor(7, vec4(77,191,172,70))
  140. for(I=1,6)
  141. {
  142.  
  143. local Name = W[I,array][1,string] ? W[I,array][1,string] : "Udsolgt"
  144. local Price = W[I,array][2,number] ? W[I,array][2,number] : 0
  145.  
  146. This:egpBox(I+8, vec2(256,96+(I*60)), vec2(200,45))
  147. This:egpColor(I+8, vec4(77,191,172,30))
  148. This:egpBoxOutline(I+15, vec2(256,96+(I*60)), vec2(200,45))
  149. This:egpText(I+31, Name+" - "+Price+",-", vec2(256,96+(I*60)))
  150. This:egpAlign(I+31, 1,1)
  151. This:egpFont(I+31, "Courier New",25)
  152. }
  153.  
  154. This:egpBox(23, vec2(76,306), vec2(90,345)) This:egpColor(23, vec(51,51,51))
  155. This:egpBox(24, vec2(76,156), vec2(90,25)) This:egpColor(24, vec4(77,191,172,30))
  156. This:egpText(25,"X I T E X", vec2(256,56)) This:egpAlign(25,1,1) This:egpFont(25,"Courier New",35)
  157. This:egpText(26,"K U R V", vec2(76,156)) This:egpAlign(26,1,1) This:egpFont(26,"Courier New",20)
  158. This:egpBox(27, vec2(76,456), vec2(90,45)) This:egpColor(27, vec4(77,191,172,30))
  159. This:egpText(28, "BETAL", vec2(76,446)) This:egpAlign(28,1,1) This:egpFont(28,"Courier New",15)
  160. This:egpText(29, "0", vec2(76,466)) This:egpAlign(29,1,1) This:egpFont(29,"Courier New",20)
  161. }
  162. function wirelink:drawVelkommen()
  163. {
  164. S=-1
  165. Name="-"
  166. This:egpText(50, Name, vec2(143,181))
  167. This:egpAlign(50, 0,1)
  168. This:egpFont(50, "Courier New",19)
  169. Pas="-"
  170. This:egpText(51, Pas, vec2(143,236))
  171. This:egpAlign(51, 0,1)
  172. This:egpFont(51, "Courier New",19)
  173. timer("name",100)
  174. }
  175. EGP:drawLogin()
  176.  
  177.  
  178. ##KONTROL PANEL##
  179. function void wirelink:drawCtrl()
  180. {
  181. This:egpClear()
  182. This:egpBox(1, vec2(256,256), vec2(512,512)) This:egpColor(1,vec(112,155,139)) This:egpMaterial(1,"vgui/appchooser/background_hl2")
  183. This:egpBox(100, vec2(256,390), vec2(240,50)) This:egpColor(100, vec(10,10,10))
  184. This:egpBox(2, vec2(256,256), vec2(512,512)) This:egpColor(2, vec4(30,30,300, 240)) #30,30,30
  185. This:egpBox(3, vec2(256,256), vec2(512,512)) This:egpMaterial(3, "gui/gradient_down") This:egpColor(3, vec4(58,100,61,70))
  186. This:egpBox(4, vec2(256,256), vec2(512,512)) This:egpMaterial(4, "gui/gradient_up") This:egpColor(4, vec4(77,191,172,70)) #255, 153, 102
  187. This:egpBoxOutline(5, vec2(256,256), vec2(512,512)) This:egpSize(5,5)
  188.  
  189.  
  190. This:egpBox(6, vec2(256,136), vec2(400,200)) This:egpColor(6, vec(51,51,51))
  191. This:egpBox(7, vec2(256,376), vec2(400,200)) This:egpColor(7, vec(51,51,51))
  192. This:egpBoxOutline(8, vec2(256,256), vec2(410,449))
  193. This:egpText(9,"K O N T R O L - P A N E L", vec2(256,256)) This:egpAlign(9,1,1) This:egpFont(9,"Courier New",25)
  194. This:egpBox(10, vec2(256,52), vec2(400,30)) This:egpColor(10, vec4(77,191,172,70))
  195. This:egpText(11,"I N F O R M A T I O N", vec2(256,52)) This:egpAlign(11,1,1) This:egpFont(11,"Courier New",30)
  196.  
  197.  
  198. This:egpText(19,"- V"+aa()+"ben solgt: "+Sold, vec2(216,80))
  199. This:egpText(20,"- Tjent: "+Earned+" kr.", vec2(216,100))
  200. This:egpText(21,"- Kunder: "+Cust, vec2(216,120))
  201. for(I=18,31){This:egpAlign(I,0,1) This:egpFont(I, "Courier New",20)}
  202. timer("drawSettings",450)
  203. }
  204.  
  205. function void wirelink:drawActiveWeapons()
  206. {
  207. for(I=1,3)
  208. {
  209. This:egpBoxOutline(I+70, vec2(96,40+(I*55)), vec2(70,50))
  210. This:egpBoxOutline(I+74, vec2(176,40+(I*55)), vec2(70,50))
  211. This:egpText(I+78, "INTET", vec2(96,30+(I*55)))
  212. This:egpAlign(I+78, 1,1)
  213. This:egpFont(I+78, "Courier New",15)
  214. This:egpText(I+82, "INTET", vec2(176,30+(I*55)))
  215. This:egpAlign(I+82, 1,1)
  216. This:egpFont(I+82, "Courier New",15)
  217. }
  218. }
  219.  
  220. function void wirelink:addOption(Index, Text1:string, Text2:string)
  221. {
  222. local X = 126 + (130 * CI)
  223. local Y = 296+(CY*50)
  224.  
  225. This:egpBox(100+Index, vec2(X, Y), vec2(120,45))
  226. This:egpColor(100+Index, vec4(77,191,172,70))
  227.  
  228. This:egpText(120+Index, Text1, vec2(X,Y-8))
  229. This:egpFont(120+Index, "Courier New",20)
  230. This:egpAlign(120+Index, 1, 1)
  231.  
  232. This:egpText(140+Index, Text2, vec2(X,Y+8))
  233. This:egpFont(140+Index, "Courier New",20)
  234. This:egpAlign(140+Index, 1, 1)
  235. CI++
  236.  
  237. if(CI > 2){
  238. CI=0
  239. CY++
  240. }
  241.  
  242. }
  243.  
  244. function void wirelink:drawSettings()
  245. {
  246. This:egpBox(32, vec2(256,293), vec2(400,30)) This:egpColor(32, vec4(77,191,172,70))
  247. This:egpText(33,"F U N K T I O N E R", vec2(256,293)) This:egpAlign(33,1,1) This:egpFont(33,"Courier New",30)
  248. #[
  249. This:egpText(35,"Gang rabat", vec2(126,335))
  250. This:egpText(36,"0%", vec2(126,355))
  251. This:egpText(38,"Vagt rebat", vec2(126,386))
  252. This:egpText(39,"0%", vec2(126,406))
  253. This:egpText(41,"Profit", vec2(126,436))
  254. This:egpText(42,"4000", vec2(126,455))
  255. This:egpText(44,"Blacklist", vec2(256,336))
  256. This:egpText(45,"Spiller", vec2(256,356))
  257. This:egpText(47,"Whitelist", vec2(256,386))
  258. This:egpText(48,"Spiller", vec2(256,406))
  259.  
  260. This:egpText(49, "Blacklist", vec2(386,336))
  261. This:egpText(50, "Bande", vec2(386,356))
  262. This:egpText(51, "Whitelist", vec2(386,386))
  263. This:egpText(52, "Bande", vec2(386,406))
  264. This:egpText(53, "Ans"+ae()+"t", vec2(386,436))
  265. This:egpText(54, "Personale", vec2(386,456))
  266. This:egpText(55, "Fyr", vec2(256,436))
  267. This:egpText(56, "Personale", vec2(256,456))
  268. for(I=49,56){This:egpAlign(I, 1,1) This:egpFont(I, "Courier New",20)}
  269. ]#
  270. CIndex = 1
  271. CI = 0
  272. CY = 1
  273. This:addOption(1, "Profit", moneyFormat(Profit)+" kr.")
  274. This:addOption(2, "Gang rabat", Settings["Gang.Discount", number]+"%")
  275. This:addOption(3, "Vagt rabat", Settings["Hired.Discount", number]+"0%")
  276.  
  277. This:addOption(4, "Blacklist", "Spiller")
  278. This:addOption(5, "Whitelist", "Spiller")
  279. This:addOption(6, "Blacklist", "Bande")
  280. This:addOption(7, "Whitelist", "Bande")
  281. This:addOption(8, "Ans"+ae()+"t", "Personale")
  282. This:addOption(9, "Fyr", "Personale")
  283.  
  284. timer("drawActiveWeapons",350)
  285. }
  286.  
  287. function wirelink:drawLoading()
  288. {
  289. This:egpClear()
  290. This:egpBox(1, vec2(256,256), vec2(512,512))
  291. This:egpColor(1, vec(21))
  292. This:egpText(2, "Indl"+ae()+"ser", vec2(256,256))
  293. This:egpAlign(2, 1,1)
  294. This:egpFont(2, "Courier New",32)
  295. timer("drawCtrl",1025)
  296. }
  297. #################
  298. Ctrl:drawLoading()
  299.  
  300. function void entity:r()
  301. {
  302. if(!This:isShipment()){return}
  303.  
  304. W:pushArray(array(This:getWepName(), This:getWepPrice(), This, 0, 0))
  305. }
  306.  
  307. function void updateShipments()
  308. {
  309. R1:r()
  310. R2:r()
  311. R3:r()
  312. R4:r()
  313. R5:r()
  314. R6:r()
  315. }
  316.  
  317. function void entity:blacklist()
  318. {
  319. local M = Blacklist["Player", table][This:steamID(), number] ? " er allerede blacklisted." : " er nu blacklisted."
  320.  
  321. Blacklist["Player", table][This:steamID(), number] = 1
  322. message(This:name()+M)
  323.  
  324. }
  325. function void entity:whitelist()
  326. {
  327. local M = Blacklist["Player", table][This:steamID(), number] ? " er ikke l"+ae()+"ngere blacklisted." : " er ikke blacklisted."
  328.  
  329. Blacklist["Player", table][This:steamID(), number] = 0
  330. message(This:name()+M)
  331. }
  332. function number entity:isPlayerBlacklisted()
  333. {
  334. return Blacklist["Player", table][This:steamID(), number]
  335. }
  336.  
  337. ##
  338. ## Blacklist Gang
  339. ##
  340.  
  341. function void entity:gangblacklist()
  342. {
  343. if(This:getGangID()==0){message(This:name()+" er ikke med i noget gang.") return}
  344. local M = Blacklist["Gang", table][This:getGang(), number] ? " er allerede blacklisted." : " er nu blacklisted."
  345.  
  346. Blacklist["Gang", table][This:getGang(), number] = 1
  347. message(This:getGang()+M)
  348. }
  349.  
  350. function void entity:gangwhitelist()
  351. {
  352. if(This:getGangID()==0){message(This:name()+" er ikke med i noget gang.") return}
  353. local M = Blacklist["Gang", table][This:getGang(), number] ? " er ikke l"+ae()+"ngere blacklisted." : " er ikke blacklisted."
  354.  
  355. Blacklist["Gang", table][This:getGang(), number] = 0
  356. message(This:getGang()+M)
  357. }
  358.  
  359. function number entity:isGangBlacklisted()
  360. {
  361. return Blacklist["Gang", table][This:getGang(), number]
  362. }
  363.  
  364. function number entity:isBlacklisted()
  365. {
  366. return This:isPlayerBlacklisted() | This:isGangBlacklisted()
  367. }
  368.  
  369. function void wp(Nr)
  370. {
  371. local Ar = W[Nr,array]
  372. local Ent = Ar[3,entity]
  373. if(!Ent:isShipment()){return}
  374.  
  375. if(Ar[4, number]){
  376. Price-=Ar[2,number]
  377. }else
  378. {
  379. Price+=Ar[2,number]
  380. }
  381.  
  382. Ar[4, number] = !Ar[4, number]
  383.  
  384. local Col = Ar[4, number] ? vec(255, 174, 66) : vec(255,255,255)
  385.  
  386. EGP:egpColor(15+Nr, Col)
  387.  
  388. EGP:egpSetText(29, Price:toString())
  389.  
  390. if(ops()> 150){return}
  391.  
  392. for(I=1, Las)
  393. {
  394. EGP:egpRemove(190+I)
  395. }
  396.  
  397. local M = 1
  398.  
  399. for(I=1, W:count())
  400. {
  401. local A = W[I,array]
  402.  
  403. if(A[4,number])
  404. {
  405. EGP:egpText(190+M, A[1,string], vec2(76, 178+M*12-12))
  406. EGP:egpAlign(190+M,1,1)
  407. EGP:egpFont(190+M, "Courier New",16)
  408. M++
  409. }
  410. }
  411.  
  412. Las = M
  413.  
  414. }
  415.  
  416. }
  417.  
  418. if(~User & User & ops()<250 && opcounter()<1900)
  419. {
  420. if(S==1)
  421. {
  422. if(EGP:egpButton(15, User))
  423. {
  424. S=-1
  425. CurUser=User
  426. Blckl = User:isBlacklisted()
  427.  
  428. updateShipments()
  429. EGP:drawVelkommen()
  430. FinalName=CurUser:name():explode("")
  431. FinalPas="********":explode("")
  432. timer("distancecheck", 5000)
  433. }
  434. }elseif(S==2 & User==CurUser)
  435. {
  436. if(EGP:egpButton(16, User)){wp(1)}
  437. elseif(EGP:egpButton(17, User)){wp(2)}
  438. elseif(EGP:egpButton(18, User)){wp(3)}
  439. elseif(EGP:egpButton(19, User)){wp(4)}
  440. elseif(EGP:egpButton(20, User)){wp(5)}
  441. elseif(EGP:egpButton(21, User)){wp(6)}
  442. elseif(EGP:egpButton(23, User)){moneyRequest(User, Price, "K"+oe()+"b af pornoblad")}
  443. }
  444. }
  445.  
  446. elseif(clk(CLKNAME)){
  447. if(OPS<250 & CPU<150){
  448. switch(CLKNAME)
  449. {
  450.  
  451. case "drawCtrl",
  452. Ctrl:drawCtrl()
  453. break,
  454.  
  455. case "drawActiveWeapons",
  456. Ctrl:drawActiveWeapons()
  457. break,
  458.  
  459. case "drawSettings",
  460. Ctrl:drawSettings()
  461. break,
  462.  
  463. case "drawBuyGunz",
  464. EGP:drawBuyGunz()
  465. break,
  466.  
  467. case "distancecheck",
  468. if(S==2){
  469. if(CurUser:pos():distance(EGP:entity():pos())>100)
  470. {
  471. EGP:drawLogin()
  472. }
  473. timer("distancecheck",5000)
  474. }
  475. break,
  476.  
  477. case "Pas",
  478. if(Pas:length()<=FinalPas:count()){
  479. Pas=Pas+FinalPas[Pas:length(),string]
  480. EGP:egpSetText(51,Pas:sub(2))
  481. timer("Pas",100)
  482. }else{timer("drawBuyGunz",150)}
  483. break,
  484.  
  485. case "name",
  486. if(S!=-1){break}
  487. if(Name:length()<=FinalName:count())
  488. {
  489. Name=Name+FinalName[Name:length(),string]
  490. EGP:egpSetText(50,Name:sub(2))
  491. timer("name",100)
  492. }else{timer("Pas",100) FinalPas="*******":explode("")}
  493. break
  494. }
  495. }
  496. else{
  497. timer(CLKNAME,1900)
  498. }
  499. }elseif(moneyClk("K"+oe()+"b af pornoblad"))
  500. {
  501.  
  502. for(I=1, W:count())
  503. {
  504. local A = W[I,array]
  505. local Ent = A[3,entity]
  506.  
  507. if(A[4,number])
  508. {
  509. if(Ent:shipmentAmount()==1){message("Ude af v"+aa()+"ben: "+A[1,string])}
  510. if(Ent:isShipment() & Ent:ejectWeapon())
  511. {
  512. Omsat+=A[2,number]
  513. Sold++
  514. Earned+=Profit
  515. }else
  516. {
  517. message("Fejl i at ejecte et shipment: "+A[1,string])
  518. }
  519. }
  520. }
  521. EGP:drawLogin()
  522. Cust++
  523.  
  524. Ctrl:egpSetText(19,"- Antal Solgte: "+Sold)
  525. Ctrl:egpSetText(20,"- Tjent: "+Earned+" kr.")
  526. Ctrl:egpSetText(21,"- Kunder: "+Cust)
  527.  
  528. }elseif(moneyNoClk("K"+oe()+"b af pornoblad") | moneyTimeout("K"+oe()+"b af pornoblad"))
  529. {
  530. EGP:drawLogin()
  531. }
  532. elseif(chatClk(owner()) &ops()<150)
  533. {
  534. local LAS = owner():lastSaid()
  535. local LS = LAS:explode(" ")
  536. local LP = lastSpoke()
  537.  
  538.  
  539. local OE = owner():aimEntity()
  540.  
  541. if(OE == Ctrl:entity() & ->Ctrl)
  542. {
  543. local Ply = tx_FindPly(LAS)
  544.  
  545. if(Ctrl:egpButton(101, LP))
  546. {
  547.  
  548. Profit = LAS:toNumber()
  549.  
  550. Ctrl:egpSetText(141, moneyFormat(Profit)+" kr.")
  551. }
  552. elseif(Ctrl:egpButton(102, LP))
  553. {
  554.  
  555. Settings["Gang.Discount", number] = LAS:toNumber()
  556.  
  557. Ctrl:egpSetText(142, Settings["Gang.Discount", number]+"%")
  558.  
  559. }elseif(Ctrl:egpButton(103, LP))
  560. {
  561.  
  562. Settings["Hired.Discount", number] = LAS:toNumber()
  563.  
  564. Ctrl:egpSetText(143, Settings["Hired.Discount", number]+"%")
  565.  
  566. }elseif(Ctrl:egpButton(104, LP))
  567. {
  568. Ply:blacklist()
  569. }elseif(Ctrl:egpButton(105, LP))
  570. {
  571. Ply:whitelist()
  572. }
  573. elseif(Ctrl:egpButton(106, LP))
  574. {
  575. Ply:gangblacklist()
  576. }elseif(Ctrl:egpButton(107, LP))
  577. {
  578. Ply:gangwhitelist()
  579. }
  580.  
  581. hideChat(1)
  582. }elseif(LS[1,string]=="!shop")
  583. {
  584. local Cmd = LS[2,string]
  585. local Arg = LS[3,string]:toNumber()
  586. local Str = LS[3,string]
  587.  
  588. local FBI = findPlayerBySteamID(Str)
  589. local Ply = FBI ? FBI : findPlayerByName(Str)
  590. if(Str==""){Ply = noentity()}
  591.  
  592. hideChat(1)
  593.  
  594. switch(Cmd)
  595. {
  596. case "profit",
  597. if(Arg==0){message("Profit: "+Profit+" kr.") break}
  598. Profit = Arg
  599. message("Profit sat til: "+Profit+" kr.")
  600. break,
  601.  
  602. case "remain",
  603. if(R1:isShipment()){printColor(vec(255), R1:shipmentName()+" - "+R1:shipmentAmount())}
  604. if(R2:isShipment()){printColor(vec(255), R2:shipmentName()+" - "+R2:shipmentAmount())}
  605. if(R3:isShipment()){printColor(vec(255), R3:shipmentName()+" - "+R3:shipmentAmount())}
  606. if(R4:isShipment()){printColor(vec(255), R4:shipmentName()+" - "+R4:shipmentAmount())}
  607. if(R5:isShipment()){printColor(vec(255), R5:shipmentName()+" - "+R5:shipmentAmount())}
  608. if(R6:isShipment()){printColor(vec(255), R6:shipmentName()+" - "+R6:shipmentAmount())}
  609. break,
  610.  
  611. case "blacklist",
  612. if(Ply:isPlayer())
  613. {
  614. Ply:blacklist()
  615. }
  616. else
  617. {
  618. message("Brug !shop blacklist <Navn>")
  619. }
  620.  
  621. break,
  622.  
  623. case "whitelist",
  624.  
  625. if(Ply:isPlayer())
  626. {
  627. Ply:whitelist()
  628. }else
  629. {
  630. message("Brug !shop whitelist <Navn>")
  631. }
  632. break,
  633.  
  634. case "blacklistgang",
  635. if(Ply:isPlayer())
  636. {
  637. Ply:gangblacklist()
  638. }
  639. else
  640. {
  641. message("Brug !shop blacklistgang <Navn>'s gang")
  642. }
  643. break,
  644.  
  645. case "whitelistgang",
  646. if(Ply:isPlayer())
  647. {
  648. Ply:gangwhitelist()
  649. }
  650. else
  651. {
  652. message("Brug !shop whitelistgang <Navn>'s gang")
  653. }
  654. break,
  655.  
  656. #"Sold" Command
  657. case "sold",
  658. message("Du har solgt "+Sold+" v"+aa()+"ben - Og tjent "+Earned+"kr.")
  659. break,
  660.  
  661.  
  662. case "logout",
  663. EGP:drawLogin()
  664. message("Loggede en neger ud!")
  665. break,
  666.  
  667. default,
  668. message("Commands: whitelist - blacklist - blacklistgang - whitelistgang - sold - profit - remain - logout")
  669. break,
  670. }
  671.  
  672. }
  673.  
  674. }
  675.  
  676. if(~EGP & EGP){EGP:drawLogin()}
  677. if(~Ctrl & Ctrl){Ctrl:drawCtrl()}
  678.  
Add Comment
Please, Sign In to add comment