Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name STYLE | GUNSHOP | VERSION 1.00
- @inputs E:wirelink U:entity CP:wirelink CU:entity [R1,R2,R3,R4,R5,R6,R7,R8]:entity
- @outputs
- @persist [CurUser]:entity [Velkommen,Name,WebName,Currency,ChooseIcon,Seneste]:string [FinalVelkommen, FinalName]:array
- @persist [S,SC,ST,Profit,Rabat,Price,Count,Omsat,Tjent,Onlinevaaben,,W1,W2,W3,W4,W5,W6,W7,W8,Close,BlackPrice]:number [Blacklisted]:table
- @trigger
- if(first()){
- #CONFIG
- Profit = 939
- Rabat = 5
- BlackPrice = 25000
- WebName = "- S T Y L E -"
- Currency = "$"
- ChooseIcon = "data/stavox/images/mdicons_32_shopping_basket.png"
- ##############
- function number wirelink:egpButton(Idx:number,Ply:entity)
- {
- TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
- BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
- Cur = This:egpCursor(Ply) return inrange(Cur, TL, BR) exit()
- }
- function string moneyFormat(M:number)
- {
- local Q = M < 1000000 # No need to do math?
- local P = Q ? "^(-?%d+)(%d%d%d)" : "^(-?%d+)(%d%d%d)(%d%d%d)"
- local N = Q ? "%1.%2" : "%1.%2.%3"
- return M:toString():replaceRE(P, N) #Regular Expressions // Yaay
- }
- function number entity:wepPrice()
- {
- if(This:isShipment()){
- O = (This:shipmentPrice()*Rabat)/100
- return round(This:shipmentPrice()+Profit-O)
- }else{return 0}
- }
- function string entity:wepName()
- {
- if(This:isShipment()){
- return This:shipmentName()
- }else{return "Out Of Stuck"}
- }
- function number shipmentInStock()
- {
- return (R1:isShipment() || R2:isShipment() || R3:isShipment() || R4:isShipment() || R5:isShipment() || R6:isShipment() || R7:isShipment() || R8:isShipment())
- }
- function void addCursor()
- {
- 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)))
- E:egpColor(999,0,0,0,200)
- E:egpParentToCursor(999)
- }
- runOnChat(1)
- timer("drawStart",200)
- timer("drawCpStats",500)
- stoptimer("CurUserDistance")
- }
- if(clk("drawStart")){
- S = 1
- E:egpClear()
- E:egpBox(1,vec2(256,460),vec2(512,920))
- E:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
- E:egpBox(2,vec2(256,256),vec2(512,512))
- E:egpColor(2,45,45,45,220)
- E:egpBox(3,vec2(256,60),vec2(460,80))
- E:egpColor(3,35,45,65,50)
- E:egpBox(4,vec2(256,60),vec2(460,80))
- E:egpColor(4,35,35,35,150)
- E:egpMaterial(4,"gui/center_gradient")
- E:egpText(5,WebName,vec2(256,60))
- E:egpAlign(5,1,1)
- E:egpFont(5,"Courier New",34)
- E:egpBox(6,vec2(256,400),vec2(300,80))
- E:egpColor(6,35,35,35,230)
- E:egpText(7,"Login",vec2(256,400))
- E:egpAlign(7,1,1)
- E:egpFont(7,"Courier New",28)
- Velkommen = ""
- E:egpText(8,Velkommen,vec2(256,400))
- E:egpAlign(8,1,1)
- E:egpFont(8,"Courier New",28)
- E:egpColor(10,224, 224, 215,255)
- if(Rabat>0){
- E:egpBox(50,vec2(472,40),vec2(170,42))
- E:egpAngle(50,-45)
- E:egpColor(50,50,141,194,255)
- E:egpText(51,"Spar "+Rabat+"%",vec2(472,40))
- E:egpAlign(51,1,1)
- E:egpFont(51,"Courier New",20)
- E:egpAngle(51,-45)
- }
- stoptimer("CurUserDistance")
- CurUser = noentity() W1=0 W2=0 W3=0 W4=0 W5=0 W6=0 W7=0 W8=0 Price = 0
- addCursor()
- }
- if(clk("drawShop")){
- S = 2
- E:egpClear()
- E:egpBox(1,vec2(256,460),vec2(512,920))
- E:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
- E:egpBox(2,vec2(256,256),vec2(512,512))
- E:egpColor(2,45,45,45,220)
- E:egpBox(50,vec2(256,256),vec2(360,512))
- E:egpColor(50,15,15,15,150)
- E:egpBox(3,vec2(256,100),vec2(250,1))
- E:egpColor(3,214, 48, 49,255)
- E:egpBox(4,vec2(256,100),vec2(1,250))
- E:egpMaterial(4,"gui/gradient_down")
- E:egpColor(4,9, 132, 227,255)
- E:egpAngle(4,90)
- E:egpText(5,WebName,vec2(256,88))
- E:egpAlign(5,1,1)
- E:egpFont(5,"Courier New",20)
- if(R1:isShipment()){
- #Slot 1
- E:egpBox(6,vec2(256,136),vec2(250,26))
- E:egpColor(6,25,25,25,175)
- E:egpText(7,R1:wepName()+" | "+R1:wepPrice()+" "+Currency,vec2(140,136))
- E:egpAlign(7,0,1)
- E:egpFont(7,"Courier New",16)
- }
- if(R2:isShipment()){
- #Slot2
- E:egpBox(8,vec2(256,136+30),vec2(250,26))
- E:egpColor(8,25,25,25,175)
- E:egpText(9,R2:wepName()+" | "+R2:wepPrice()+" "+Currency,vec2(140,136+30))
- E:egpAlign(9,0,1)
- E:egpFont(9,"Courier New",16)
- }
- if(R3:isShipment()){
- #Slot3
- E:egpBox(10,vec2(256,136+60),vec2(250,26))
- E:egpColor(10,25,25,25,175)
- E:egpText(11,R3:wepName()+" | "+R3:wepPrice()+" "+Currency,vec2(140,136+60))
- E:egpAlign(11,0,1)
- E:egpFont(11,"Courier New",16)
- }
- if(R4:isShipment()){
- #Slot4
- E:egpBox(12,vec2(256,136+90),vec2(250,26))
- E:egpColor(12,25,25,25,175)
- E:egpText(13,R4:wepName()+" | "+R4:wepPrice()+" "+Currency,vec2(140,136+90))
- E:egpAlign(13,0,1)
- E:egpFont(13,"Courier New",16)
- }
- if(R5:isShipment()){
- #Slot5
- E:egpBox(14,vec2(256,136+120),vec2(250,26))
- E:egpColor(14,25,25,25,175)
- E:egpText(15,R5:wepName()+" | "+R5:wepPrice()+" "+Currency,vec2(140,136+120))
- E:egpAlign(15,0,1)
- E:egpFont(15,"Courier New",16)
- }
- if(R6:isShipment()){
- #Slot6
- E:egpBox(16,vec2(256,136+150),vec2(250,26))
- E:egpColor(16,25,25,25,175)
- E:egpText(17,R6:wepName()+" | "+R6:wepPrice()+" "+Currency,vec2(140,136+150))
- E:egpAlign(17,0,1)
- E:egpFont(17,"Courier New",16)
- }
- if(R7:isShipment()){
- #Slot7
- E:egpBox(18,vec2(256,136+180),vec2(250,26))
- E:egpColor(18,25,25,25,175)
- E:egpText(19,R7:wepName()+" | "+R7:wepPrice()+" "+Currency,vec2(140,136+180))
- E:egpAlign(19,0,1)
- E:egpFont(19,"Courier New",16)
- }
- if(R8:isShipment()){
- #Slot8
- E:egpBox(20,vec2(256,136+210),vec2(250,26))
- E:egpColor(20,25,25,25,175)
- E:egpText(21,R8:wepName()+" | "+R8:wepPrice()+" "+Currency,vec2(140,136+210))
- E:egpAlign(21,0,1)
- E:egpFont(21,"Courier New",16)
- }
- E:egpBox(22,vec2(142,434),vec2(20,80))
- E:egpColor(22,15,15,15,200)
- E:egpText(23," - KURV -",vec2(142,434))
- E:egpAlign(23,1,1)
- E:egpFont(23,"Courier New",16)
- E:egpAngle(23,90)
- E:egpBox(24,vec2(267,434),vec2(230,80))
- E:egpColor(24,25,25,25,200)
- E:egpBox(25,vec2(267,434),vec2(1,70))
- E:egpBox(26,vec2(324,434),vec2(60,60))
- E:egpMaterial(26,"data/stavox/images/misc_mobilepayicon.png")
- E:egpText(27,"Total Bel"+oe()+"b",vec2(208,410))
- E:egpAlign(27,1,1)
- E:egpFont(27,"Courier New",16)
- E:egpBox(28,vec2(208,418),vec2(90,1))
- E:egpText(29,"0 "+Currency,vec2(208,440))
- E:egpAlign(29,1,1)
- E:egpFont(29,"Courier New",20)
- E:egpColor(29,50,141,194,255)
- E:egpBox(30,vec2(256,500),vec2(20,20))
- E:egpMaterial(30,"data/stavox/images/misc_homebutton.png")
- E:egpColor(30,50,141,194,255)
- addCursor()
- }
- if(clk("drawCpStats")){
- SC = 1
- CP:egpClear()
- CP:egpBox(1,vec2(256,460),vec2(512,920))
- CP:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
- CP:egpBox(2,vec2(256,256),vec2(512,512))
- CP:egpColor(2,45,45,45,220)
- CP:egpBox(3,vec2(256,136),vec2(250,40))
- CP:egpColor(3,237,234,255,255)
- CP:egpText(4,"- S T Y L E -",vec2(256,136))
- CP:egpAlign(4,1,1)
- CP:egpFont(4,"Courier New",22)
- CP:egpColor(4,0,0,0,255)
- CP:egpBox(5,vec2(256,291),vec2(240,270))
- CP:egpColor(5,15,15,15,200)
- CP:egpBox(6,vec2(256,190),vec2(226,40))
- CP:egpColor(6,19,19,19,150)
- CP:egpBox(7,vec2(168,190),vec2(30,30))
- CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_open.png")
- CP:egpColor(7,255, 255, 255,255)
- CP:egpBox(8,vec2(220,190),vec2(30,30))
- CP:egpMaterial(8,"data/stavox/images/misc_icon-options.png")
- CP:egpBox(9,vec2(278,190),vec2(36,36))
- CP:egpMaterial(9,"data/stavox/images/mdicons_128_trending_up.png")
- CP:egpColor(9,50,141,194,255)
- CP:egpBox(10,vec2(340,190),vec2(30,30))
- CP:egpMaterial(10,"data/stavox/images/mdicons_128_playlist_add_check.png")
- CP:egpBox(11,vec2(256,232),vec2(220,30))
- CP:egpColor(11,5,5,5,200)
- CP:egpText(12,"Oms"+ae()+"tning: "+moneyFormat(Omsat)+" "+Currency,vec2(160,232))
- CP:egpAlign(12,0,1)
- CP:egpFont(12,"Courier New",16)
- CP:egpBox(13,vec2(256,232+34),vec2(220,30))
- CP:egpColor(13,5,5,5,200)
- CP:egpText(14,"Overskud: "+moneyFormat(Tjent)+" "+Currency,vec2(160,232+34))
- CP:egpAlign(14,0,1)
- CP:egpFont(14,"Courier New",16)
- CP:egpBox(15,vec2(256,232+68),vec2(220,30))
- CP:egpColor(15,5,5,5,200)
- CP:egpText(16,"V"+aa()+"ben solgt: "+Count+" pcs.",vec2(160,232+68))
- CP:egpAlign(16,0,1)
- CP:egpFont(16,"Courier New",16)
- CP:egpBox(17,vec2(256,232+102),vec2(220,30))
- CP:egpColor(17,5,5,5,200)
- CP:egpText(18,"V"+aa()+"ben online: "+Onlinevaaben+" pcs.",vec2(160,232+102))
- CP:egpAlign(18,0,1)
- CP:egpFont(18,"Courier New",16)
- CP:egpBox(19,vec2(256,232+136),vec2(220,30))
- CP:egpColor(19,5,5,5,200)
- CP:egpText(20,"Senest kunde: Ingen",vec2(160,232+136))
- CP:egpAlign(20,0,1)
- CP:egpFont(20,"Courier New",16)
- if(Seneste != ""){
- CP:egpSetText(20,"Seneste kunde: "+Seneste)
- }else{
- CP:egpSetText(20,"Seneste kunde: Ingen")
- }
- CP:egpBox(21,vec2(256,232+170),vec2(220,30))
- CP:egpColor(21,5,5,5,200)
- CP:egpText(22,"Status: "+aaL()+"ben",vec2(160,232+170))
- CP:egpAlign(22,0,1)
- CP:egpFont(22,"Courier New",16)
- }
- if(clk("drawCpSettings")){
- SC = 2
- CP:egpClear()
- CP:egpBox(1,vec2(256,460),vec2(512,920))
- CP:egpMaterial(1,"data/stavox/images/wallpaper_2.jpg")
- CP:egpBox(2,vec2(256,256),vec2(512,512))
- CP:egpColor(2,45,45,45,220)
- CP:egpBox(3,vec2(256,136),vec2(250,40))
- CP:egpColor(3,237,234,255,255)
- CP:egpText(4,"- S T Y L E -",vec2(256,136))
- CP:egpAlign(4,1,1)
- CP:egpFont(4,"Courier New",22)
- CP:egpColor(4,0,0,0,255)
- CP:egpBox(5,vec2(256,291),vec2(240,270))
- CP:egpColor(5,15,15,15,200)
- CP:egpBox(6,vec2(256,190),vec2(226,40))
- CP:egpColor(6,19,19,19,150)
- CP:egpBox(7,vec2(168,190),vec2(30,30))
- CP:egpMaterial(7,"data/stavox/images/mdicons_128_accessible.png")
- CP:egpBox(8,vec2(220,190),vec2(30,30))
- CP:egpMaterial(8,"data/stavox/images/misc_icon-options.png")
- CP:egpColor(8,50,141,194,255)
- CP:egpBox(9,vec2(278,190),vec2(36,36))
- CP:egpMaterial(9,"data/stavox/images/mdicons_128_trending_up.png")
- CP:egpBox(10,vec2(340,190),vec2(30,30))
- CP:egpMaterial(10,"data/stavox/images/mdicons_128_playlist_add_check.png")
- CP:egpBox(11,vec2(164,236),vec2(30,30))
- CP:egpColor(11,5,5,5,200)
- CP:egpBox(12,vec2(271,236),vec2(184,30))
- CP:egpColor(12,10,10,10,150)
- CP:egpBox(13,vec2(164,236),vec2(20,20))
- CP:egpMaterial(13,"data/stavox/images/mdicons_128_account_balance_wallet.png")
- CP:egpText(14,moneyFormat(Profit)+" "+Currency,vec2(271,236))
- CP:egpAlign(14,1,1)
- CP:egpFont(14,"Courier new",16)
- #Setting 2
- CP:egpBox(15,vec2(164,236+40),vec2(30,30))
- CP:egpColor(15,5,5,5,200)
- CP:egpBox(16,vec2(271,236+40),vec2(184,30))
- CP:egpColor(16,10,10,10,150)
- CP:egpBox(17,vec2(164,236+40),vec2(20,20))
- CP:egpMaterial(17,"data/stavox/images/mdicons_128_style.png")
- CP:egpText(18,Rabat+" %",vec2(271,236+40))
- CP:egpAlign(18,1,1)
- CP:egpFont(18,"Courier new",16)
- #Setting 3
- CP:egpBox(19,vec2(164,236+80),vec2(30,30))
- CP:egpColor(19,5,5,5,200)
- CP:egpBox(20,vec2(271,236+80),vec2(184,30))
- CP:egpColor(20,10,10,10,150)
- CP:egpBox(21,vec2(164,236+80),vec2(20,20))
- CP:egpMaterial(21,"data/stavox/images/mdicons_32_monetization_on.png")
- CP:egpText(22,Currency,vec2(271,236+80))
- CP:egpAlign(22,1,1)
- CP:egpFont(22,"Courier new",16)
- #Setting 4
- CP:egpBox(23,vec2(164,236+120),vec2(30,30))
- CP:egpColor(23,5,5,5,200)
- CP:egpBox(24,vec2(271,236+120),vec2(184,30))
- CP:egpColor(24,10,10,10,150)
- CP:egpBox(25,vec2(164,236+120),vec2(20,20))
- CP:egpMaterial(25,"data/stavox/images/mdicons_128_block.png")
- CP:egpText(26,"25.000 $",vec2(271,236+120))
- CP:egpAlign(26,1,1)
- CP:egpFont(26,"Courier new",16)
- #Setting 5
- CP:egpBox(27,vec2(164,236+160),vec2(30,30))
- CP:egpColor(27,5,5,5,200)
- CP:egpBox(28,vec2(271,236+160),vec2(184,30))
- CP:egpColor(28,10,10,10,150)
- CP:egpBox(29,vec2(164,236+160),vec2(20,20))
- CP:egpMaterial(29,"data/stavox/images/mdicons_128_backspace.png")
- CP:egpText(30,"Force logout",vec2(271,236+160))
- CP:egpAlign(30,1,1)
- CP:egpFont(30,"Courier new",16)
- }
- if(clk("reg")){
- S = 30
- E:egpBox(31,vec2(256,256),vec2(512,180))
- E:egpColor(31,15,15,15,240)
- E:egpBox(32,vec2(256,220),vec2(100,100))
- E:egpMaterial(32,"data/stavox/images/mdicons_128_check_circle.png")
- E:egpColor(32,39, 174, 96,255)
- E:egpText(33,"Stort tak for dit k"+oe()+"b af v"+aa()+"ben!",vec2(256,284))
- E:egpAlign(33,1,1)
- E:egpFont(33,"Courier New",20)
- E:egpText(34,"Dine v"+aa()+"ben bliver udleveret",vec2(256,300))
- E:egpAlign(34,1,1)
- E:egpFont(34,"Courier New",20)
- timer("drawLine",200)
- }
- if(clk("drawLine")){
- E:egpBox(35,vec2(256,345),vec2(86,1))
- timer("drawLine2",300)
- }
- if(clk("drawLine2")){
- E:egpBox(35,vec2(256,345),vec2(172,1))
- timer("drawLine3",200)
- }
- if(clk("drawLine3")){
- E:egpBox(35,vec2(256,345),vec2(258,1))
- timer("drawLine4",100)
- }
- if(clk("drawLine4")){
- E:egpBox(35,vec2(256,345),vec2(344,1))
- timer("drawLine5",100)
- }
- if(clk("drawLine5")){
- E:egpBox(35,vec2(256,345),vec2(430,1))
- timer("drawLine6",100)
- }
- if(clk("drawLine6")){
- E:egpBox(35,vec2(256,345),vec2(512,1))
- timer("drawStart",1000)
- }
- if(clk("cancelreg")){
- E:egpBox(31,vec2(256,256),vec2(512,180))
- E:egpColor(31,15,15,15,240)
- E:egpBox(32,vec2(256,220),vec2(100,100))
- E:egpMaterial(32,"data/stavox/images/mdicons_128_cancel.png")
- E:egpColor(32,192, 57, 43,255)
- E:egpText(33,"Din ordrer blev afvist!",vec2(256,284))
- E:egpAlign(33,1,1)
- E:egpFont(33,"Courier New",20)
- E:egpText(34,"P"+aa()+" gensyn :)",vec2(256,300))
- E:egpAlign(34,1,1)
- E:egpFont(34,"Courier New",20)
- timer("drawLine",200)
- }
- if(clk("drawCloseSign")){
- Close = 1,
- E:egpBox(9,vec2(286,200),vec2(1,150))
- E:egpAngle(9,25)
- E:egpColor(9,224, 224, 215,255)
- E:egpBox(10,vec2(238,200),vec2(1,150))
- E:egpAngle(10,-15)
- E:egpCircle(11,vec2(256,136),vec2(8,8))
- E:egpColor(11,149, 165, 166,255)
- E:egpRoundedBox(12,vec2(266,290),vec2(170,70))
- E:egpAngle(12,8)
- E:egpColor(12,224, 224, 215,255)
- E:egpRoundedBoxOutline(13,vec2(266,290),vec2(160,60))
- E:egpAngle(13,8)
- E:egpColor(13,0,0,0,255)
- E:egpBox(14,vec2(196,278),vec2(12,12))
- E:egpMaterial(14,"data/stavox/images/mdicons_128_cancel.png")
- E:egpColor(14,149, 165, 166,255)
- E:egpBox(15,vec2(329,259),vec2(12,12))
- E:egpMaterial(15,"data/stavox/images/mdicons_128_cancel.png")
- E:egpColor(15,149, 165, 166,255)
- E:egpText(16,"SORRY WE'RE",vec2(264,280))
- E:egpAlign(16,1,1)
- E:egpFont(16,"Courier New",20)
- E:egpColor(16,25,25,25,255)
- E:egpAngle(16,8)
- E:egpText(17,"CLOSED",vec2(268,298))
- E:egpAlign(17,1,1)
- E:egpFont(17,"Courier New",26)
- E:egpColor(17,25,25,25,255)
- E:egpAngle(17,8)
- timer("redIcon",2000)
- }
- if(clk("redIcon")){
- CP:egpRemove(7)
- CP:egpBox(100,vec2(168,190),vec2(30,30))
- CP:egpMaterial(100,"data/stavox/images/mdicons_128_lock_outline.png")
- CP:egpColor(100,192, 57, 43,255)
- }
- if(clk("NoWepsOnStock")){
- ST = 55
- E:egpBox(55,vec2(256,256),vec2(512,180))
- E:egpColor(55,15,15,15,240)
- E:egpBox(56,vec2(256,220),vec2(100,100))
- E:egpMaterial(56,"data/stavox/images/mdicons_128_search.png")
- E:egpColor(56,250, 152, 58,255)
- E:egpText(57,"S"+oeL()+"GER EFTER V"+aaL()+"BEN...",vec2(256,294))
- E:egpAlign(57,1,1)
- E:egpFont(57,"Courier New",26)
- timer("drawRunLine",200)
- }
- if(clk("drawRunLine")){
- ST = 55
- E:egpBox(59,vec2(256,345),vec2(86,1))
- timer("drawRunLine1",300)
- }
- if(clk("drawRunLine1")){
- ST = 55
- E:egpBox(59,vec2(256,345),vec2(172,1))
- timer("drawRunLine2",200)
- }
- if(clk("drawRunLine2")){
- ST = 55
- E:egpBox(59,vec2(256,345),vec2(258,1))
- timer("drawRunLine3",100)
- }
- if(clk("drawRunLine3")){
- ST = 55
- E:egpBox(59,vec2(256,345),vec2(344,1))
- timer("drawRunLine4",100)
- }
- if(clk("drawRunLine4")){
- ST = 55
- E:egpBox(59,vec2(256,345),vec2(430,1))
- timer("drawRunLine5",100)
- }
- if(clk("drawRunLine5")){
- ST = 55
- E:egpBox(59,vec2(256,345),vec2(512,1))
- timer("SayNoWeps",1000)
- }
- if(clk("SayNoWeps")){
- ST = 55
- E:egpMaterial(56,"data/stavox/images/mdicons_128_cancel.png")
- E:egpColor(56,192, 57, 43,255)
- E:egpSetText(57,"INGEN V"+aaL()+"BEN BLEV FUNDET...")
- E:egpText(60,"PR"+oeL()+"V IGEN OM LIDT!",vec2(256,314))
- E:egpAlign(60,1,1)
- E:egpFont(60,"Courier New",20)
- timer("drawStart",2000)
- }
- #-------------------------------------------------- LOGIN --------------------------------------------------#
- if(S == 1 & ops()<100){
- if(~U & U){
- if(shipmentInStock()){
- if(E:egpButton(6,U)){timer("Velkommen",200) Velkommen=" " FinalVelkommen="Velkommen":explode("") CurUser = U E:egpRemove(6) E:egpRemove(7) timer("CurUserDistance",5000)
- }
- }else{
- timer("NoWepsOnStock",200)
- }
- }
- }
- if(S == 2 & ops()<100 & CurUser == U){
- if(~U & U){
- if(E:egpButton(30,U)){timer("drawStart",200) CurUser = noentity()}
- }
- }
- if(clk("Velkommen")&S==1){
- if(Velkommen:length()<=FinalVelkommen:count())
- {
- Velkommen=Velkommen+FinalVelkommen[Velkommen:length(),string]
- E:egpSetText(8,Velkommen:sub(2))
- timer("Velkommen",150)
- }else{
- timer("drawShop",100)}
- }
- #-------------------------------------------------- DRAW WEP SYSTEM --------------------------------------------------#
- if(S == 2 & ops()<100 & CurUser == U){
- #--------Betaling
- if(E:egpButton(26,U)&Price>0){moneyRequest(CurUser,Price,"You style")}
- #--------Choose weps
- #----1
- elseif(E:egpButton(6,U)&R1:isShipment()){
- if(W1 == 0){
- Price = Price+R1:wepPrice() W1 = 1 E:egpBox(100,vec2(364,136),vec2(16,16)) E:egpMaterial(100,ChooseIcon)
- }else{Price = Price-R1:wepPrice() W1 = 0 E:egpRemove(100) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----2
- elseif(E:egpButton(8,U)&R2:isShipment()){
- if(W2 == 0){
- Price = Price+R2:wepPrice() W2 = 1 E:egpBox(101,vec2(364,136+30),vec2(16,16)) E:egpMaterial(101,ChooseIcon)
- }else{Price = Price-R2:wepPrice() W2 = 0 E:egpRemove(101) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----3
- elseif(E:egpButton(10,U)&R3:isShipment()){
- if(W3 == 0){
- Price = Price+R3:wepPrice() W3 = 1 E:egpBox(102,vec2(364,136+60),vec2(16,16)) E:egpMaterial(102,ChooseIcon)
- }else{Price = Price-R3:wepPrice() W3 = 0 E:egpRemove(102) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----4
- elseif(E:egpButton(12,U)&R4:isShipment()){
- if(W4 == 0){
- Price = Price+R4:wepPrice() W4 = 1 E:egpBox(103,vec2(364,136+90),vec2(16,16)) E:egpMaterial(103,ChooseIcon)
- }else{Price = Price-R4:wepPrice() W4 = 0 E:egpRemove(103) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----5
- elseif(E:egpButton(14,U)&R5:isShipment()){
- if(W5 == 0){
- Price = Price+R5:wepPrice() W5 = 1 E:egpBox(104,vec2(364,136+120),vec2(16,16)) E:egpMaterial(104,ChooseIcon)
- }else{Price = Price-R5:wepPrice() W5 = 0 E:egpRemove(104) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----6
- elseif(E:egpButton(16,U)&R6:isShipment()){
- if(W6 == 0){
- Price = Price+R6:wepPrice() W6 = 1 E:egpBox(105,vec2(364,136+150),vec2(16,16)) E:egpMaterial(105,ChooseIcon)
- }else{Price = Price-R6:wepPrice() W6 = 0 E:egpRemove(105) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----7
- elseif(E:egpButton(18,U)&R7:isShipment()){
- if(W7 == 0){
- Price = Price+R7:wepPrice() W7 = 1 E:egpBox(106,vec2(364,136+180),vec2(16,16)) E:egpMaterial(106,ChooseIcon)
- }else{Price = Price-R7:wepPrice() W7 = 0 E:egpRemove(106) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- #----8
- elseif(E:egpButton(20,U)&R8:isShipment()){
- if(W8 == 0){
- Price = Price+R8:wepPrice() W8 = 1 E:egpBox(107,vec2(364,136+210),vec2(16,16)) E:egpMaterial(107,ChooseIcon)
- }else{Price = Price-R8:wepPrice() W8 = 0 E:egpRemove(107) }
- E:egpSetText(29,moneyFormat(Price)+Currency)}
- }
- Onlinevaaben = R1:shipmentAmount() + R2:shipmentAmount() + R3:shipmentAmount() + R4:shipmentAmount() + R5:shipmentAmount() + R6:shipmentAmount() + R7:shipmentAmount() + R8:shipmentAmount()
- if(moneyNoClk("You style")){
- timer("cancelreg",200)
- }
- if(moneyClk("You style")){
- timer("reg",200)
- timer("goweps",1000)
- timer("updateStatsOnCp",2000)
- Seneste = moneyClkPlayer():name()
- }
- if(clk("goweps")){
- if(W1==1){R1:ejectWeapon() Count++ Tjent+=Profit Omsat+=R1:wepPrice()}
- if(W2==1){R2:ejectWeapon() Count++ Tjent+=Profit Omsat+=R2:wepPrice()}
- if(W3==1){R3:ejectWeapon() Count++ Tjent+=Profit Omsat+=R3:wepPrice()}
- if(W4==1){R4:ejectWeapon() Count++ Tjent+=Profit Omsat+=R4:wepPrice()}
- if(W5==1){R5:ejectWeapon() Count++ Tjent+=Profit Omsat+=R5:wepPrice()}
- if(W6==1){R6:ejectWeapon() Count++ Tjent+=Profit Omsat+=R6:wepPrice()}
- if(W7==1){R7:ejectWeapon() Count++ Tjent+=Profit Omsat+=R7:wepPrice()}
- if(W8==1){R8:ejectWeapon() Count++ Tjent+=Profit Omsat+=R8:wepPrice()}
- }
- if(clk("updateStatsOnCp")){
- CP:egpSetText(12,"Oms"+ae()+"tning: "+moneyFormat(Omsat)+" "+Currency)
- CP:egpSetText(14,"Overskud: "+moneyFormat(Tjent)+" "+Currency)
- CP:egpSetText(16,"V"+aa()+"ben solgt: "+Count+" pcs.")
- CP:egpSetText(18,"V"+aa()+"ben online: "+Onlinevaaben+" pcs.")
- CP:egpSetText(20,"Senest kunde: "+Seneste)
- }
- #-------------------------------------CONTROL PANEL-------------------------------------#
- if(~CU & CU:keyUse() & CU == owner() & ops()<100){
- if(SC == 1 & ops()<100){
- if(CP:egpButton(8,CU)){timer("drawCpSettings",200) }
- if(CP:egpButton(7,CU)){timer("drawCloseSign",200) CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_outline.png") CP:egpSetText(22,"Status: Lukket") CP:egpColor(7,50,141,194,255) hint("Du lukkede butikken",4000) S = 5}
- if(CP:egpButton(100,CU)){timer("drawStart",200) timer("refresh",200) Close == 0}
- if(CP:egpButton(10,CU)){timer("drawHintWeps",200)}
- }
- if(SC == 2 & ops()<100){
- if(CP:egpButton(9,CU)){timer("drawCpStats",200) timer("removeLogoToClose",200) }
- if(CP:egpButton(28,CU)){ timer("drawFlText",200)}
- if(CP:egpButton(7,CU)){hint("HANDICAP LOGO",4000)}
- if(CP:egpButton(10,CU)){timer("drawHintWeps",200)}
- }
- }
- if(clk("removeLogoToClose")){
- if(Close == 1){
- CP:egpRemove(7) CP:egpBox(100,vec2(168,190),vec2(30,30))
- CP:egpMaterial(100,"data/stavox/images/mdicons_128_lock_outline.png")
- CP:egpColor(100,192, 57, 43,255)
- }elseif(Close == 0){
- CP:egpBox(7,vec2(168,190),vec2(30,30))
- CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_open.png")
- CP:egpColor(7,255, 255, 255,255)
- }
- }
- if(clk("drawFlText")){
- CP:egpSetText(30,"I do that!")
- hint("Loggede "+CurUser:name()+" ud af (S T Y L E)",4000)
- timer("drawForText",2000)
- CurUser = noentity()
- timer("drawStart",200)
- }
- if(clk("drawForText")){
- CP:egpSetText(30,"Force logout")
- }
- if(clk("refresh")& SC == 1){
- Close = 0
- CP:egpRemove(100)
- CP:egpSetText(22,"Status: "+aaL()+"ben")
- CP:egpBox(7,vec2(168,190),vec2(30,30))
- CP:egpMaterial(7,"data/stavox/images/mdicons_128_lock_open.png")
- CP:egpColor(7,50,141,194,255)
- timer("setColorBack",2000)
- }
- if(clk("setColorBack")){
- CP:egpColor(7,255,255,255,255)
- }
- #Profit
- if(chatClk(owner())) {
- if(CP:egpButton(12, lastSpoke())) {
- if(lastSaid():toNumber() > 0 | lastSaid():toNumber() < 0 | lastSaid() == "0") {
- Profit = lastSaid():toNumber()
- CP:egpSetText(14,moneyFormat(Profit)+" "+Currency)
- hint("Profit sat til "+moneyFormat(Profit),4000)
- hideChat(1)
- }
- }elseif(CP:egpButton(16, lastSpoke())) {
- if(lastSaid():toNumber() > 0 | lastSaid():toNumber() < 0 | lastSaid() == "0") {
- Rabat = lastSaid():toNumber()
- CP:egpSetText(18,Rabat+" %")
- hint("Rabat sat til "+Rabat+" %",4000)
- hideChat(1)
- }
- }elseif(CP:egpButton(20, lastSpoke())) {
- Currency = lastSaid()
- CP:egpSetText(22,Currency)
- hint("Valuta sat til "+Currency,4000)
- hideChat(1)
- }
- }
- if(clk("drawHintWeps")){
- CP:egpColor(10,50,141,194,255)
- if(R1:isShipment()){hint("Plads 1 | Wep: "+R1:wepName()+" Pris: "+moneyFormat(R1:wepPrice())+" "+Currency+" Antal: "+R1:shipmentAmount(),8000)
- }else{
- hint("Plads 1 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R2:isShipment()){hint("Plads 2 | Wep: "+R2:wepName()+" Pris: "+moneyFormat(R2:wepPrice())+" "+Currency+" Antal: "+R2:shipmentAmount(),8000)
- }else{
- hint("Plads 2 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R3:isShipment()){hint("Plads 3 | Wep: "+R3:wepName()+" Pris: "+moneyFormat(R3:wepPrice())+" "+Currency+" Antal: "+R3:shipmentAmount(),8000)
- }else{
- hint("Plads 3 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R4:isShipment()){hint("Plads 4 | Wep: "+R4:wepName()+" Pris: "+moneyFormat(R4:wepPrice())+" "+Currency+" Antal: "+R4:shipmentAmount(),8000)
- }else{
- hint("Plads 4 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R5:isShipment()){hint("Plads 5 | Wep: "+R5:wepName()+" Pris: "+moneyFormat(R5:wepPrice())+" "+Currency+" Antal: "+R5:shipmentAmount(),8000)
- }else{
- hint("Plads 5 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R6:isShipment()){hint("Plads 6 | Wep: "+R6:wepName()+" Pris: "+moneyFormat(R6:wepPrice())+" "+Currency+" Antal: "+R6:shipmentAmount(),8000)
- }else{
- hint("Plads 6 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R7:isShipment()){hint("Plads 7 | Wep: "+R7:wepName()+" Pris: "+moneyFormat(R7:wepPrice())+" "+Currency+" Antal: "+R7:shipmentAmount(),8000)
- }else{
- hint("Plads 7 | Intet shipment p"+aa()+"sat!",8000)
- }
- if(R8:isShipment()){hint("Plads 8 | Wep: "+R8:wepName()+" Pris: "+moneyFormat(R8:wepPrice())+" "+Currency+" Antal: "+R8:shipmentAmount(),8000)
- }else{
- hint("Plads 8 | Intet shipment p"+aa()+"sat!",8000)
- }
- timer("resetWepPrintColor",8000)
- }
- if(clk("resetWepPrintColor")){
- CP:egpColor(10,255,255,255,255)
- }
- if(chatClk(owner())) {
- if(lastSaid():find("!bl") | lastSaid():find("!wl")) {
- local Mode = lastSaid():find("!bl") ? "blacklisted" : "whitelisted",
- local Txt = lastSaid():sub(5, lastSaid():length()),
- local Ply = findPlayerBySteamID(Txt) ? findPlayerBySteamID(Txt) : findPlayerByName(Txt),
- if(Ply:isValid() & Ply:isPlayer() & lastSaid():lower():explode(" "):string(2) != "" & Blacklisted[Ply:steamID(),number] != lastSaid():find("!bl") ? 1 : 0) {
- Blacklisted[Ply:steamID(),number] = lastSaid():find("!bl") ? 1 : 0,
- hideChat(1),
- printColor(vec(255,255,255),"[ ",vec(59,91,161),"ICEBOX",vec(255,255,255)," ] "+Ply:name()+" ("+Ply:steamID()+") blev "+Mode+".")
- }
- else {
- hideChat(1),
- printColor(vec(255,255,255),"[ ",vec(59,91,161),"ICEBOX",vec(255,255,255)," ] Ugyldig spiller: "+Txt)
- }
- }
- }
- #-------------------------------------------------------------------------------------#
- #--- Log ud auto // For langt vaek ---#
- if(clk("CurUserDistance")){
- if(S>1 & ops()<100){
- if(CurUser:pos():distance(E:entity():pos())>75){timer("drawStart",250) CurUser = noentity()
- }
- }
- timer("CurUserDistance",3000)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement