Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Den orginale code for denne e2 er mountain gunshopen har bare
- #lavet om i den s credits til merlin for mountain gunshop og
- #og muligheden for at lave den her e2 <3
- @name Fakta | Gunshop | Version 2 | Kodet af Slamboe
- @inputs EGP:wirelink User:entity CP:wirelink [KU,R1,R2,R3,R4,R5,R6,R7,R8]:entity
- @outputs U1 U2 U3 U4 U5 U6 U7 U8
- @persist CurUser:entity [Profit,C1,C2,C3,C4,C5,C6,C7,C8,Pris,Count,Omsat,Tjent,Klar,S,SS,OpeningTime,M]:number [Butiknavn, Velkommen, Name,Link,Seneste]:string [FinalVelkommen, FinalName]:array
- @trigger
- if(duped() | dupefinished()){reset()}
- if(first()){
- ## - - - - INDSTILLINGER - - - - ##
- Profit = 750
- Butiknavn = "Fakta"
- ## - - - - FUNC & TIMERS & ANDET - - - - ##
- #- - - TIMERS & NAME
- timer("stage1",250)
- stoptimer("CurUserDistance")
- timer("kon1",1000)
- timer("kon2",2000)
- timer("Tid",3000)
- runOnChat(1)
- setName("- Fakta Gunshop -
- - Udviklet af Slamboe
- - Version 2 -")
- # - - - FUNC
- 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 number entity:wepPrice()
- {
- if(This:isShipment()){
- return (This:shipmentPrice()+Profit)
- }else{return 0}
- }
- function string entity:wepName()
- {
- if(This:isShipment()){
- return This:shipmentName()
- }else{return "Udsolgt"}
- }
- function void addCursor()
- {
- EGP:egpPoly(999,array(vec2(0,0),vec2(0,15),vec2(3,12),vec2(5,15),vec2(7,15),vec2(6,11),vec2(10,10)))
- EGP:egpColor(999,0,0,0,200)
- EGP:egpParentToCursor(999)
- }
- function void addCursor()
- {
- 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)))
- CP:egpColor(999,0,0,0,200)
- CP:egpParentToCursor(999)
- }
- ##TID
- function string returnTime()
- {
- SSec=time("sec")
- MMin=time("min")
- HHour=time("hour")+1
- if(SSec<10){Sec="0"+SSec}
- else{Sec=""+SSec}
- if(MMin<10){Min="0"+MMin}
- else{Min=""+MMin}
- if(HHour<10){Hour="0"+HHour} elseif(HHour==24){Hour="00"}
- elseif(HHour==25){Hour="01"} elseif(HHour==26){Hour="02"}
- elseif(HHour==27){Hour="03"} elseif(HHour==28){Hour="04"}
- elseif(HHour==29){Hour="05"} elseif(HHour==30){Hour="06"}
- else{Hour=""+HHour}
- Tid=Hour+":"+Min
- return Tid
- }
- ## - - - - IKKE PILLE SKRID - - - - ##
- printColor(vec(255,255,255),"----------------===============INFO===============----------------")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," Ved brug af Fakta v2 acceptere du vores",vec(255,0,0)," TOS! ",vec(57,194,86),+Link)
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," Brug ",vec(57,194,86),"!help",vec(200,200,200)," for at se en liste over tilg"+ae()+"ngelige commands!")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," Denne E2 er udviklet af Slamboe!")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," "+Butiknavn+" gunshop er startet 50% op! Og er klar til brug")
- printColor(vec(255,255,255),"----------------===============INFO===============----------------")
- }
- ## - - - FORSIDE - - - ##
- if(clk("stage1")){
- Y = 25
- S = 1
- EGP:egpClear()
- ##Baggrund
- EGP:egpBox(1,vec2(256,256),vec2(512,512))
- EGP:egpBox(2,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(2,"console/background01")
- EGP:egpAlpha(2,250)
- EGP:egpColor(2,vec(255,0,0))
- EGP:egpBox(3,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(3,"gui/gradient_up")
- EGP:egpColor(3,vec(0,13,255))
- ##Navn
- EGP:egpText(4,""+Butiknavn+"",vec2(256,280))
- EGP:egpAlign(4,1,1)
- EGP:egpSize(4,60)
- EGP:egpFont(4,"Courier New")
- EGP:egpBox(5,vec2(256,300),vec2(300,1))
- EGP:egpText(6,"Gunshop",vec2(256,315))
- EGP:egpAlign(6,1,1)
- EGP:egpSize(6,32)
- EGP:egpFont(6,"Courier New")
- CurUser = noentity() C1=0 C2=0 C3=0 C4=0 C5=0 C6=0 C7=0 C8=0 Pris = 0
- addCursor()
- }
- ## - - - VELKOMMEN - - - ##
- if(clk("stagesvel")){
- S = 2
- EGP:egpClear()
- ##Baggrund
- EGP:egpBox(1,vec2(256,256),vec2(512,512))
- EGP:egpBox(2,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(2,"console/background01")
- EGP:egpAlpha(2,250)
- EGP:egpColor(2,vec(255,0,0))
- EGP:egpBox(3,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(3,"gui/gradient_up")
- EGP:egpColor(3,vec(0,13,255))
- Velkommen="-"
- EGP:egpText(4,Velkommen,vec2(256,238))
- EGP:egpAlign(4,1,1)
- EGP:egpSize(4,52)
- EGP:egpFont(4,"Courier New")
- Name="-"
- EGP:egpText(5,Name,vec2(256,274))
- EGP:egpAlign(5,1,1)
- EGP:egpSize(5,52)
- EGP:egpFont(5,"Courier New")
- EGP:egpText(6,"",vec2(256,50))
- EGP:egpAlign(6,1,1)
- EGP:egpSize(6,22)
- EGP:egpFont(6,"Courier New")
- EGP:egpText(7,"",vec2(256,75))
- EGP:egpAlign(7,1,1)
- EGP:egpSize(7,22)
- EGP:egpFont(7,"Courier New")
- EGP:egpText(8,"",vec2(256,100))
- EGP:egpAlign(8,1,1)
- EGP:egpSize(8,22)
- EGP:egpFont(8,"Courier New")
- timer("Velkommen",100)
- }
- ## - - - Shop - - - "
- if(clk("stageshop")){
- S = 3
- EGP:egpClear()
- ##Baggrund
- EGP:egpBox(1,vec2(256,256),vec2(512,512))
- EGP:egpBox(2,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(2,"console/background01")
- EGP:egpAlpha(2,250)
- EGP:egpColor(2,vec(255,0,0))
- EGP:egpBox(3,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(3,"gui/gradient_up")
- EGP:egpColor(3,vec(0,13,255))
- EGP:egpBoxOutline(4,vec2(256,256),vec2(325,514))
- EGP:egpColor(4,vec4(0,0,0,125))
- EGP:egpBox(5,vec2(256,256),vec2(323,514))
- EGP:egpColor(5,vec4(45,45,45,125))
- ##Logud knap
- EGP:egpBox(6,vec2(111,17),vec2(34,34))
- EGP:egpColor(6,vec(255,0,0))
- EGP:egpBox(7,vec2(111,17),vec2(1,34))
- EGP:egpAngle(7,45)
- EGP:egpBox(8,vec2(111,17),vec2(1,34))
- EGP:egpAngle(8,-45)
- ##Navn
- EGP:egpText(9,"Fakta",vec2(256,65))
- EGP:egpAlign(9,1,1)
- EGP:egpSize(9,50)
- EGP:egpFont(9,"Courier New")
- EGP:egpBox(10,vec2(256,85),vec2(250,1))
- EGP:egpText(11,"Gunshop",vec2(256,100))
- EGP:egpAlign(11,1,1)
- EGP:egpSize(11,32)
- EGP:egpFont(11,"Courier New")
- ##Vaaben boxe
- for(I=1, 8){EGP:egpBox(13+I,vec2(256,138+(I*38)),vec2(310,35)) EGP:egpColor(13+I,vec4(28,28,28,125))}
- ##Tekst
- EGP:egpText(22,"Navn:",vec2(130,148))
- EGP:egpAlign(22,1,1)
- EGP:egpSize(22,16)
- EGP:egpFont(22,"Courier New")
- EGP:egpText(23,"Pris:",vec2(384,148))
- EGP:egpAlign(23,1,1)
- EGP:egpSize(23,16)
- EGP:egpFont(23,"Courier New")
- ##Betalings knap
- EGP:egpBox(24,vec2(256,500),vec2(325,30))
- EGP:egpColor(24,vec(255,0,0))
- EGP:egpBox(25,vec2(256,486),vec2(325,1))
- EGP:egpColor(25,vec(200,200,200))
- EGP:egpText(26,"INGEN VARER VALGT!",vec2(255,500))
- EGP:egpAlign(26,1,1)
- EGP:egpSize(26,16)
- EGP:egpFont(26,"Courier New")
- EGP:egpText(27,"~ ~ ~ ~ ~ ~ ~ BETALING ~ ~ ~ ~ ~ ~ ~",vec2(256,474))
- EGP:egpAlign(27,1,1)
- EGP:egpSize(27,14)
- EGP:egpFont(27,"Courier New")
- timer("stagen",500)
- timer("stagep",1000)
- }
- ## - - - SHOP TEXT - - -##
- if(clk("stagen")){
- S = 3
- EGP:egpText(29,""+R1:wepName(),vec2(110,176))
- EGP:egpText(30,""+R2:wepName(),vec2(110,214))
- EGP:egpText(31,""+R3:wepName(),vec2(110,252))
- EGP:egpText(32,""+R4:wepName(),vec2(110,290))
- EGP:egpText(33,""+R5:wepName(),vec2(110,328))
- EGP:egpText(34,""+R6:wepName(),vec2(110,366))
- EGP:egpText(35,""+R7:wepName(),vec2(110,404))
- EGP:egpText(36,""+R8:wepName(),vec2(110,442))
- for(I=1,8){EGP:egpAlign(28+I,0,1) EGP:egpFont(28+I,"Courier New") EGP:egpSize(28+I,20)}
- }
- if(clk("stagep")){
- S = 3
- EGP:egpText(38,""+R1:wepPrice()+",-",vec2(404,166))
- EGP:egpText(39,""+R2:wepPrice()+",-",vec2(404,204))
- EGP:egpText(40,""+R3:wepPrice()+",-",vec2(404,242))
- EGP:egpText(41,""+R4:wepPrice()+",-",vec2(404,280))
- EGP:egpText(42,""+R5:wepPrice()+",-",vec2(404,318))
- EGP:egpText(43,""+R6:wepPrice()+",-",vec2(404,356))
- EGP:egpText(44,""+R7:wepPrice()+",-",vec2(404,394))
- EGP:egpText(45,""+R8:wepPrice()+",-",vec2(404,432))
- for(I=1,8){EGP:egpAlign(37+I,2) EGP:egpFont(37+I,"Courier New") EGP:egpSize(37+I,20)}
- addCursor()
- }
- # - - - KONTROL PANEL - - - #
- if(clk("kon1")){
- SS = 1
- Y = -12
- CP:egpClear()
- ##Baggrund
- CP:egpBox(1,vec2(256,256),vec2(512,512))
- CP:egpBox(2,vec2(256,256),vec2(512,512))
- CP:egpMaterial(2,"console/background01")
- CP:egpAlpha(2,250)
- CP:egpColor(2,vec(255,0,0))
- CP:egpBox(3,vec2(256,256),vec2(512,512))
- CP:egpMaterial(3,"gui/gradient_up")
- CP:egpColor(3,vec(0,13,255))
- ##Navn
- CP:egpText(4,"- Fakta -",vec2(282,40))
- CP:egpAlign(4,1,1)
- CP:egpSize(4,50)
- CP:egpFont(4,"Courier New")
- ##MENU LINJE
- CP:egpBox(7,vec2(26,256),vec2(50,512))
- CP:egpColor(7,vec(255,166,0))
- CP:egpBox(8,vec2(52,256),vec2(1,512))
- CP:egpColor(8,vec(0,255,8))
- ##TEGN
- CP:egpText(9,"F",vec2(25,25))
- CP:egpAlign(9,1,1)
- CP:egpSize(9,25)
- CP:egpFont(9,"Courier New")
- ##FOR LOGO
- CP:egpBox(10,vec2(282,75),vec2(462,1))
- CP:egpColor(10,vec(200,200,200))
- ##STATISTIKKER
- CP:egpBox(14,vec2(282,184-Y),vec2(300,50))
- CP:egpColor(14,vec(0,149,255))
- CP:egpText(15,"STATISTIKKER",vec2(282,186-Y))
- CP:egpAlign(15,1,1)
- CP:egpSize(15,32)
- CP:egpFont(15,"Courier New")
- }
- if(clk("kon2")){
- SS = 1
- Y = -12
- ##VAABEN TJEK
- CP:egpBox(16,vec2(282,242-Y),vec2(300,50))
- CP:egpColor(16,vec(56,138,67))
- CP:egpText(17,"TJEK V"+aaL()+"BEN",vec2(282,242-Y))
- CP:egpAlign(17,1,1)
- CP:egpSize(17,32)
- CP:egpFont(17,"Courier New")
- ##INDSTILLINGER
- CP:egpBox(18,vec2(282,300-Y),vec2(300,50))
- CP:egpColor(18,vec(255,0,225))
- CP:egpText(19,"INDSTILLINGER",vec2(282,300-Y))
- CP:egpAlign(19,1,1)
- CP:egpSize(19,32)
- CP:egpFont(19,"Courier New")
- ##KLOKKE
- CP:egpBox(20,vec2(282,360-Y),vec2(300,50))
- CP:egpColor(20,vec4(0,127,127,150))
- CP:egpText(21,"",vec2(282,360-Y))
- CP:egpAlign(21,1,1)
- CP:egpSize(21,30)
- CP:egpFont(21,"Courier New")
- ##UNDERSTREG
- CP:egpBox(22,vec2(282,221),vec2(300,1))
- CP:egpBox(23,vec2(282,279),vec2(300,1))
- CP:egpBox(24,vec2(282,337),vec2(300,1))
- CP:egpBox(25,vec2(282,397),vec2(300,1))
- addCursor()
- }
- if(clk("kstat")){
- SS = 2
- CP:egpClear()
- ##Baggrund
- CP:egpBox(1,vec2(256,256),vec2(512,512))
- CP:egpBox(2,vec2(256,256),vec2(512,512))
- CP:egpMaterial(2,"console/background01")
- CP:egpAlpha(2,250)
- CP:egpColor(2,vec(255,0,0))
- CP:egpBox(3,vec2(256,256),vec2(512,512))
- CP:egpMaterial(3,"gui/gradient_up")
- CP:egpColor(3,vec(0,13,255))
- ##Navn
- CP:egpText(4,"- Fakta -",vec2(282,40))
- CP:egpAlign(4,1,1)
- CP:egpSize(4,50)
- CP:egpFont(4,"Courier New")
- ##MENU LINJE
- CP:egpBox(5,vec2(26,256),vec2(50,512))
- CP:egpColor(5,vec(255,166,0))
- CP:egpBox(6,vec2(52,256),vec2(1,512))
- CP:egpColor(6,vec(0,255,8))
- ##TEGN
- CP:egpText(7,"F",vec2(25,25))
- CP:egpAlign(7,1,1)
- CP:egpSize(7,25)
- CP:egpFont(7,"Courier New")
- ##FOR LOGO
- CP:egpBox(8,vec2(282,75),vec2(462,1))
- CP:egpColor(8,vec(200,200,200))
- CP:egpBox(9,vec2(282,290),vec2(300,350))
- CP:egpColor(9,vec4(45,45,45,125))
- ##MENU
- CP:egpBox(10,vec2(282,160),vec2(300,1))
- CP:egpColor(10,vec(74,119,143))
- CP:egpText(11,"- STATISTIKKER -",vec2(282,140))
- CP:egpAlign(11,1,1)
- CP:egpSize(11,22)
- CP:egpFont(11,"Courier New")
- ##LOGUD
- CP:egpBox(12,vec2(25,256),vec2(30,30))
- CP:egpMaterial(12,"gui/close_32")
- ##STATS
- CP:egpText(13,"- PROFIT: "+Profit+",-",vec2(154,206))
- CP:egpAlign(13,0,1)
- CP:egpSize(13,18)
- CP:egpFont(13,"Courier New")
- CP:egpText(14,"- OMS"+aeL()+"TNING: "+Omsat+",-",vec2(154,226))
- CP:egpAlign(14,0,1)
- CP:egpSize(14,18)
- CP:egpFont(14,"Courier New")
- CP:egpText(15,"- INDTJENT: "+Tjent+",-",vec2(154,246))
- CP:egpAlign(15,0,1)
- CP:egpSize(15,18)
- CP:egpFont(15,"Courier New")
- CP:egpText(16,"- V"+aaL()+"BEN SOLGT: "+Count+" STK.",vec2(154,266))
- CP:egpAlign(16,0,1)
- CP:egpSize(16,18)
- CP:egpFont(16,"Courier New")
- CP:egpText(17,"- SENETE KUNDE: INGEN",vec2(154,286))
- CP:egpAlign(17,0,1)
- CP:egpSize(17,18)
- CP:egpFont(17,"Courier New")
- if(Seneste != ""){
- CP:egpSetText(17,"- SENETE KUNDE: "+Seneste)
- }else{
- CP:egpSetText(17,"- SENETE KUNDE: INGEN")
- }
- CP:egpText(18,"- "+aaL()+"BNINGSTID: "+OpeningTime+" MIN",vec2(154,306))
- CP:egpAlign(18,0,1)
- CP:egpSize(18,18)
- CP:egpFont(18,"Courier New")
- addCursor()
- }
- if(clk("tw")){
- SS = 3
- CP:egpClear()
- ##Baggrund
- CP:egpBox(1,vec2(256,256),vec2(512,512))
- CP:egpBox(2,vec2(256,256),vec2(512,512))
- CP:egpMaterial(2,"console/background01")
- CP:egpAlpha(2,250)
- CP:egpColor(2,vec(255,0,0))
- CP:egpBox(3,vec2(256,256),vec2(512,512))
- CP:egpMaterial(3,"gui/gradient_up")
- CP:egpColor(3,vec(0,13,255))
- ##Navn
- CP:egpText(4,"- Fakta -",vec2(282,40))
- CP:egpAlign(4,1,1)
- CP:egpSize(4,50)
- CP:egpFont(4,"Courier New")
- ##MENU LINJE
- CP:egpBox(5,vec2(26,256),vec2(50,512))
- CP:egpColor(5,vec(255,166,0))
- CP:egpBox(6,vec2(52,256),vec2(1,512))
- CP:egpColor(6,vec(0,255,8))
- ##TEGN
- CP:egpText(7,"F",vec2(25,25))
- CP:egpAlign(7,1,1)
- CP:egpSize(7,25)
- CP:egpFont(7,"Courier New")
- ##FOR LOGO
- CP:egpBox(8,vec2(282,75),vec2(462,1))
- CP:egpColor(8,vec(200,200,200))
- CP:egpBox(9,vec2(282,290),vec2(300,350))
- CP:egpColor(9,vec4(45,45,45,125))
- ##MENU
- CP:egpBox(10,vec2(282,160),vec2(300,1))
- CP:egpColor(10,vec(74,119,143))
- CP:egpText(11,"- TJEK V"+aaL()+"BEN -",vec2(282,140))
- CP:egpAlign(11,1,1)
- CP:egpSize(11,22)
- CP:egpFont(11,"Courier New")
- ##LOGUD
- CP:egpBox(12,vec2(25,256),vec2(30,30))
- CP:egpMaterial(12,"gui/close_32")
- CP:egpText(23,"! I = Indtjeneste A = Antal !",vec2(282,177))
- CP:egpAlign(23,1,1)
- CP:egpSize(23,16)
- CP:egpFont(23,"Courier New")
- ##TEXT'
- CP:egpText(25,"1. "+R1:wepName()+" | I = "+R1:wepPrice()+",- | A = "+R1:shipmentAmount(),vec2(282,211))
- CP:egpText(26,"2. "+R2:wepName()+" | I = "+R2:wepPrice()+",- | A = "+R2:shipmentAmount(),vec2(282,245))
- CP:egpText(27,"3. "+R3:wepName()+" | I = "+R3:wepPrice()+",- | A = "+R3:shipmentAmount(),vec2(282,279))
- CP:egpText(28,"4. "+R4:wepName()+" | I = "+R4:wepPrice()+",- | A = "+R4:shipmentAmount(),vec2(282,312))
- CP:egpText(29,"5. "+R5:wepName()+" | I = "+R5:wepPrice()+",- | A = "+R5:shipmentAmount(),vec2(282,347))
- CP:egpText(30,"6. "+R6:wepName()+" | I = "+R6:wepPrice()+",- | A = "+R6:shipmentAmount(),vec2(282,379))
- CP:egpText(31,"7. "+R7:wepName()+" | I = "+R7:wepPrice()+",- | A = "+R7:shipmentAmount(),vec2(282,414))
- CP:egpText(32,"8. "+R8:wepName()+" | I = "+R8:wepPrice()+",- | A = "+R8:shipmentAmount(),vec2(282,447))
- for(I=1,8){CP:egpAlign(24+I,1,1) CP:egpFont(24+I,"Courier New") CP:egpSize(24+I,16)}
- addCursor()
- }
- if(clk("ins")){
- SS = 4
- CP:egpClear()
- ##Baggrund
- CP:egpBox(1,vec2(256,256),vec2(512,512))
- CP:egpBox(2,vec2(256,256),vec2(512,512))
- CP:egpMaterial(2,"console/background01")
- CP:egpAlpha(2,250)
- CP:egpColor(2,vec(255,0,0))
- CP:egpBox(3,vec2(256,256),vec2(512,512))
- CP:egpMaterial(3,"gui/gradient_up")
- CP:egpColor(3,vec(0,13,255))
- ##Navn
- CP:egpText(4,"- Fakta -",vec2(282,40))
- CP:egpAlign(4,1,1)
- CP:egpSize(4,50)
- CP:egpFont(4,"Courier New")
- ##MENU LINJE
- CP:egpBox(5,vec2(26,256),vec2(50,512))
- CP:egpColor(5,vec(255,166,0))
- CP:egpBox(6,vec2(52,256),vec2(1,512))
- CP:egpColor(6,vec(0,255,8))
- ##TEGN
- CP:egpText(7,"F",vec2(25,25))
- CP:egpAlign(7,1,1)
- CP:egpSize(7,25)
- CP:egpFont(7,"Courier New")
- ##FOR LOGO
- CP:egpBox(8,vec2(282,75),vec2(462,1))
- CP:egpColor(8,vec(200,200,200))
- CP:egpBox(9,vec2(282,290),vec2(300,350))
- CP:egpColor(9,vec4(45,45,45,125))
- ##MENU
- CP:egpBox(10,vec2(282,160),vec2(300,1))
- CP:egpColor(10,vec(74,119,143))
- CP:egpText(11,"- INDSTILLINGER -",vec2(282,140))
- CP:egpAlign(11,1,1)
- CP:egpSize(11,22)
- CP:egpFont(11,"Courier New")
- ##LOGUD
- CP:egpBox(12,vec2(25,256),vec2(30,30))
- CP:egpMaterial(12,"gui/close_32")
- CP:egpBox(13,vec2(282,256),vec2(220,40))
- CP:egpColor(13,vec4(83, 92, 104,150))
- # -
- CP:egpBox(14,vec2(152,256),vec2(40,40))
- CP:egpColor(14,vec(255,0,0))
- CP:egpText(15,"-",vec2(152,256))
- CP:egpAlign(15,1,1)
- CP:egpFont(15,"Courier New")
- CP:egpSize(15,24)
- # +
- CP:egpBox(16,vec2(412,256),vec2(40,40))
- CP:egpColor(16,vec(0,255,68))
- CP:egpText(17,"+",vec2(412,256))
- CP:egpAlign(17,1,1)
- CP:egpFont(17,"Courier New")
- CP:egpSize(17,24)
- CP:egpText(18,""+Profit+",-",vec2(282,256))
- CP:egpAlign(18,1,1)
- CP:egpFont(18,"Courier New")
- CP:egpSize(18,18)
- CP:egpText(19,"PROFIT:",vec2(282,226))
- CP:egpAlign(19,1,1)
- CP:egpFont(19,"Courier New")
- CP:egpSize(19,14)
- # - - - - - - SKIFTE - - - - - - #
- CP:egpBox(20,vec2(282,366),vec2(220,40))
- CP:egpColor(20,vec4(83, 92, 104,150))
- # <
- CP:egpBox(21,vec2(152,366),vec2(40,40))
- CP:egpColor(21,vec(255,0,0))
- CP:egpText(22,"<",vec2(152,366))
- CP:egpAlign(22,1,1)
- CP:egpFont(22,"Courier New")
- CP:egpSize(22,24)
- # >
- CP:egpBox(23,vec2(412,366),vec2(40,40))
- CP:egpColor(23,vec(0,255,68))
- CP:egpText(24,">",vec2(412,366))
- CP:egpAlign(24,1,1)
- CP:egpFont(24,"Courier New")
- CP:egpSize(24,24)
- CP:egpText(25,""+aaL()+"ben",vec2(282,366))
- CP:egpAlign(25,1,1)
- CP:egpFont(25,"Courier New")
- CP:egpSize(25,18)
- CP:egpText(26,"STATUS:",vec2(282,336))
- CP:egpAlign(26,1,1)
- CP:egpFont(26,"Courier New")
- CP:egpSize(26,14)
- addCursor()
- }
- ## - - - Login - - - ##
- if(S==1)
- {
- if(ops()<100)
- {
- if(~User & User & Klar == 0)
- {
- Klar = 1
- timer("klar1",2000)
- CurUser = User
- if(EGP:egpButton(1, User)){timer("stagesvel", 400) Velkommen=" " FinalVelkommen="Velkommen":explode("") CurUser=User timer("CurUserDistance",2500)}
- }
- }
- }
- if(clk("klar1"))
- {
- Klar = 0
- }
- ## - - - Logud - - - #
- if(S==3 & CurUser==User)
- {
- if(ops()<100){
- if(~User & User){
- if(EGP:egpButton(6, User)){timer("stage1", 400)}
- }
- }
- }
- ################################# - - - - - - - GUNSHOP - - - - - - - #################################
- ## - - - WEAPON SYSTEM - - - ##
- if(ops()<100){
- if(S == 3 & CurUser == User)
- {
- if(EGP:egpButton(24,User)&Pris>0){moneyRequest(CurUser,Pris,"Kondomer")}
- elseif(EGP:egpButton(14,User)&R1:isShipment()){
- if(C1==0){
- Pris = Pris+R1:wepPrice() C1 = 1 EGP:egpBox(46,vec2(102,176),vec2(1,35)) EGP:egpBox(47,vec2(411,176),vec2(1,35))
- }else{Pris = Pris-R1:wepPrice() C1 = 0 EGP:egpRemove(46) EGP:egpRemove(47)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(15,User)&R2:isShipment()){
- if(C2==0){
- Pris = Pris+R2:wepPrice() C2 = 1 EGP:egpBox(48,vec2(102,214),vec2(1,35)) EGP:egpBox(49,vec2(411,214),vec2(1,35))
- }else{Pris = Pris-R2:wepPrice() C2 = 0 EGP:egpRemove(48) EGP:egpRemove(49)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(16,User)&R3:isShipment()){
- if(C3==0){
- Pris = Pris+R3:wepPrice() C3 = 1 EGP:egpBox(50,vec2(102,252),vec2(1,35)) EGP:egpBox(51,vec2(411,252),vec2(1,35))
- }else{Pris = Pris-R3:wepPrice() C3 = 0 EGP:egpRemove(50) EGP:egpRemove(51)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(17,User)&R4:isShipment()){
- if(C4==0){
- Pris = Pris+R4:wepPrice() C4 = 1 EGP:egpBox(52,vec2(102,290),vec2(1,35)) EGP:egpBox(53,vec2(411,290),vec2(1,35))
- }else{Pris = Pris-R4:wepPrice() C4 = 0 EGP:egpRemove(52) EGP:egpRemove(53)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(18,User)&R5:isShipment()){
- if(C5==0){
- Pris = Pris+R5:wepPrice() C5 = 1 EGP:egpBox(54,vec2(102,328),vec2(1,35)) EGP:egpBox(55,vec2(411,328),vec2(1,35))
- }else{Pris = Pris-R5:wepPrice() C5 = 0 EGP:egpRemove(54) EGP:egpRemove(55)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(19,User)&R6:isShipment()){
- if(C6==0){
- Pris = Pris+R6:wepPrice() C6 = 1 EGP:egpBox(56,vec2(102,366),vec2(1,35)) EGP:egpBox(57,vec2(411,366),vec2(1,35))
- }else{Pris = Pris-R6:wepPrice() C6 = 0 EGP:egpRemove(56) EGP:egpRemove(57)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(20,User)&R7:isShipment()){
- if(C7==0){
- Pris = Pris+R7:wepPrice() C7 = 1 EGP:egpBox(58,vec2(102,404),vec2(1,35)) EGP:egpBox(59,vec2(411,404),vec2(1,35))
- }else{Pris = Pris-R7:wepPrice() C7 = 0 EGP:egpRemove(58) EGP:egpRemove(59)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }elseif(EGP:egpButton(21,User)&R8:isShipment()){
- if(C8==0){
- Pris = Pris+R8:wepPrice() C8 = 1 EGP:egpBox(60,vec2(102,442),vec2(1,35)) EGP:egpBox(61,vec2(411,442),vec2(1,35))
- }else{Pris = Pris-R8:wepPrice() C8 = 0 EGP:egpRemove(60) EGP:egpRemove(61)}
- EGP:egpSetText(26,"BESTIL: "+Pris+",-")
- }
- }
- }
- ## - - - MONEYCLK - - - ##
- if(moneyClk("Penge til vores personale"))
- {
- timer("1pres",1250)
- Seneste = moneyClkPlayer():name()
- }
- if(moneyNoClk())
- {
- timer("stage1",300)
- }
- ##System P
- if(clk("1pres"))
- {
- # - - - Logud
- timer("stage1",300)
- timer("Y",1000)
- timer("cpup",3000)
- # - - - KAERE KUNDE
- concmd("say /pm "+CurUser:steamID()+" ["+Butiknavn+" | "+returnTime()+"] Tak for din bestilling! Du vil modtage din bestilling inden l"+ae()+"nge Mvh "+Butiknavn+"")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+" | "+returnTime(),vec(225,225,225)," ] ",vec(200,200,200),moneyClkPlayer():name()+" har bestilt v"+aa()+"ben for: ",vec(45,182,75),+Pris,vec(200,200,200),",-")
- ## - - - PRESS PRESS - - - ##
- if(C1==1){U1 = 1 Count++ Tjent+=Profit Omsat+=R1:wepPrice()}
- if(C2==1){U2 = 1 Count++ Tjent+=Profit Omsat+=R2:wepPrice()}
- if(C3==1){U3 = 1 Count++ Tjent+=Profit Omsat+=R3:wepPrice()}
- if(C4==1){U4 = 1 Count++ Tjent+=Profit Omsat+=R4:wepPrice()}
- if(C5==1){U5 = 1 Count++ Tjent+=Profit Omsat+=R5:wepPrice()}
- if(C6==1){U6 = 1 Count++ Tjent+=Profit Omsat+=R6:wepPrice()}
- if(C7==1){U7 = 1 Count++ Tjent+=Profit Omsat+=R7:wepPrice()}
- if(C8==1){U8 = 1 Count++ Tjent+=Profit Omsat+=R8:wepPrice()}
- CurUser = noentity()
- if(SS == 2){timer("kstat",1250)}
- }
- if(clk("Y")){U1 = 0 U2 = 0 U3 = 0 U4 = 0 U5 = 0 U6 = 0 U7 = 0 U8 = 0}
- ## - - - Chat Commands P FL B - - - #
- ## - - - Profit
- if(chatClk(owner()))
- {
- Said = owner():lastSaid():lower():explode(" ")
- Cmd = lastSaid():explode(" "):string(1)
- switch(Cmd)
- {
- case"!profit",
- if(lastSpoke() == owner()){
- Profit = Said[2, string]:toNumber()
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+" | "+returnTime(),vec(225,225,225)," ]",vec(200,200,200)," Profit sat til: ",vec(45,182,75),+Said[2,string]:toNumber(),vec(200,200,200),",-")
- hideChat(1)
- }
- }
- }
- # - - - Force logout
- if(chatClk(owner()))
- {
- Said = owner():lastSaid():lower():explode(" ")
- Cmd = lastSaid():explode(" "):string(1)
- switch(Cmd)
- {
- case "!fl",
- printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+" | "+returnTime(),vec(225,225,225)," ]",vec(200,200,200)," Logger ud af "+Butiknavn+"...")
- timer("stage1",500)
- hideChat(1)
- ,break
- }
- }
- # - - - HELP
- if(chatClk(owner()))
- {
- Said = owner():lastSaid():lower():explode(" ")
- Cmd = lastSaid():explode(" "):string(1)
- switch(Cmd)
- {
- case "!help",
- printColor(vec(255,255,255),"---------------==============COMMANDS==============---------------")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),"Profit",vec(225,225,225)," ]",vec(200,200,200)," For at indstille profit brug: ",vec(57,194,86),"!profit <penge>")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),"Force logout",vec(225,225,225)," ]",vec(175,175,175)," For at force logout brug: ",vec(57,194,86),"!fl")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),"Blacklist",vec(225,225,225)," ]",vec(200,200,200)," For at blacklist en person brug: ",vec(57,194,86),"!bl <Navn>")
- printColor(vec(225,225,225),"[ ",vec(123,172,75),"Unblacklist",vec(225,225,225)," ]",vec(175,175,175)," For at unblacklist en person brug: ",vec(57,194,86),"!removebl <Navn>")
- printColor(vec(255,255,255),"---------------==============COMMANDS==============---------------")
- hideChat(1)
- ,break
- }
- }
- ## - - - AFSTAND - - - ##
- if(ops()<150){
- if(clk("CurUserDistance")){
- if(S>1){
- if(CurUser:pos():distance(EGP:entity():pos())>125){timer("stage1",250) CurUser = noentity()}
- }
- timer("CurUserDistance",3500)
- }
- }
- ## - - - VELKOMMEN KAERE BRUGER - - - ##
- if(clk("Velkommen")&S==2)
- {
- if(Velkommen:length()<=FinalVelkommen:count())
- {
- Velkommen=Velkommen+FinalVelkommen[Velkommen:length(),string]
- EGP:egpSetText(4,Velkommen:sub(2))
- timer("Velkommen",150)
- }else{timer("Name",150) Name=" " FinalName=CurUser:name():explode("") S=2}
- }
- if(clk("Name")&S==2)
- {
- if(Name:length()<=FinalName:count())
- {
- Name=Name+FinalName[Name:length(),string]
- EGP:egpSetText(5,Name:sub(2))
- timer("Name",150)
- }else{timer("stageshop",250)}
- }
- ## - - - KONTROL FUNC - - - ##
- if(ops()<200){
- if(~KU & KU:keyUse() & KU == owner()){
- if(SS == 1){
- if(CP:egpButton(14,KU)){timer("kstat",500) timer("updateTime",60000)} else{stoptimer("updateTime")}
- if(CP:egpButton(16,KU)){timer("tw",500)}
- if(CP:egpButton(18,KU)){timer("ins",500)}
- }
- if(SS == 2)
- {
- if(CP:egpButton(12,KU)){timer("kon1",500) timer("kon2",1000) timer("Tid",1500)}
- }
- if(SS == 3)
- {
- if(CP:egpButton(12,KU)){timer("kon1",500) timer("kon2",1000) timer("Tid",1500)}
- }
- if(SS == 4)
- {
- if(CP:egpButton(12,KU)){timer("kon1",500) timer("kon2",1000) timer("Tid",1500)}
- }
- }
- if(~KU & KU & KU == owner()& SS == 4 &ops()<150)
- {
- if(CP:egpButton(14,KU)){Profit-=250 CP:egpSetText(18,""+Profit+",-")}
- if(CP:egpButton(16,KU)){Profit+=250 CP:egpSetText(18,""+Profit+",-")}
- if(CP:egpButton(23,KU)){
- if(M==0){
- M=1
- CP:egpSetText(25,"Opfyldning")
- timer("Opfyldning",1000)
- }
- elseif(M==1){
- M=2
- CP:egpSetText(25,"Lukket")
- timer("Lukket",1000)
- }
- elseif(M==2){
- M=0
- CP:egpSetText(25,aaL()+"ben")
- timer("stage1",1000)
- }
- }
- if(CP:egpButton(21,KU)){
- if(M==2){
- M=0
- CP:egpSetText(25,aaL()+"ben")
- timer("stage1",1000)
- }
- elseif(M==1){
- M=2
- CP:egpSetText(25,"Opfyldning")
- timer("Opfyldning",1000)
- }
- elseif(M==0){
- M=1
- CP:egpSetText(25,"Lukket")
- timer("Lukket",1000)
- }
- }
- }
- }
- if(clk("Opfyldning")){
- S = 34
- EGP:egpClear()
- ##Baggrund
- EGP:egpBox(1,vec2(256,256),vec2(512,512))
- EGP:egpBox(2,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(2,"console/background01")
- EGP:egpAlpha(2,250)
- EGP:egpColor(2,vec(255,0,0))
- EGP:egpBox(3,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(3,"gui/gradient_up")
- EGP:egpColor(3,vec(0,13,255))
- EGP:egpBox(4,vec2(256,256),vec2(512,60))
- EGP:egpColor(4,vec(0,13,255))
- EGP:egpText(5,"! VI ER IGANG MED AT OPFYLDE BUTIKKEN !",vec2(256,256))
- EGP:egpAlign(5,1,1)
- EGP:egpFont(5,"Courier New")
- EGP:egpSize(5,22)
- }
- if(clk("Lukket")){
- S = 33
- EGP:egpClear()
- ##Baggrund
- EGP:egpBox(1,vec2(256,256),vec2(512,512))
- EGP:egpBox(2,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(2,"console/background01")
- EGP:egpAlpha(2,250)
- EGP:egpColor(2,vec(255,0,0))
- EGP:egpBox(3,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(3,"gui/gradient_up")
- EGP:egpColor(3,vec(0,13,255))
- EGP:egpBox(4,vec2(256,256),vec2(512,60))
- EGP:egpColor(4,vec(0,13,255))
- EGP:egpText(5,"! BUTIKKEN ER LUKKET P"+aaL()+" NUV"+aeL()+"RENDE TIDSPNUKT !",vec2(256,256))
- EGP:egpAlign(5,1,1)
- EGP:egpFont(5,"Courier New")
- EGP:egpSize(5,22)
- }
- if(clk("cpup") & SS == 2)
- {
- CP:egpSetText(13,"- PROFIT: "+Profit+",-")
- CP:egpSetText(14,"- OMS"+aeL()+"TNING: "+Omsat+",-")
- CP:egpSetText(15,"- INDTJENT: "+Tjent+",-")
- CP:egpSetText(16,"- V"+aaL()+"BEN SOLGT: "+Count+" STK.")
- CP:egpSetText(17,"- SENETE KUNDE: "+Seneste)
- }
- if(SS == 1)
- {
- if(clk("Tid")){
- CP:egpSetText(21,returnTime())
- timer("Tid",6500)
- }
- }
- if(clk("updateTime"))
- {
- OpeningTime++
- timer("updateTime",60000)
- if(SS == 2){CP:egpSetText(18,aaL()+"BNINGSTID: "+OpeningTime+" MIN")}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement