@name FailCake Software
@inputs R1 R2 R3 R4 R5 R6 Bottun Screen:wirelink Time Page1 Ads Credits Menu Off Weapons Shopoff Shopon
@outputs 
@persist Timer V1 V2 V3 V4 V5 V6 V7 V8 Value Page S ShotgunPrice MAC10Price AK47Price M16Price SniperPrice MP5Price
@trigger all
interval(500)
Timer++
if (Timer == 1){concmd("say FailCake Software Started...")
Screen:setNumber("Reset",5)
Screen:writeString(" |---------------------| ",1,4,999)
Screen:writeString(" |  FailCake Software  | ",1,5,999)
Screen:writeString(" |---------------------| ",1,6,999)}
if (Timer == 13){concmd("say Loading...25%")
Screen:setNumber("Reset",5)
Screen:writeString(" ======================== ",1,1,999)
Screen:writeString(" ======================== ",1,2,999)
Screen:writeString(" ======================== ",1,3,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |    Loading..25%      | ",1,5,999)
Screen:writeString(" |----------------------| ",1,6,999)
Screen:writeString(" ======================== ",1,7,999)
Screen:writeString(" ======================== ",1,8,999)
Screen:writeString(" ======================== ",1,9,999)}
if (Timer == 18){concmd("say Loading...40%")
Screen:setNumber("Reset",5)
Screen:writeString(" ======================== ",1,1,999)
Screen:writeString(" ======================== ",1,2,999)
Screen:writeString(" ======================== ",1,3,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |    Loading..40%      | ",1,5,999)
Screen:writeString(" |----------------------| ",1,6,999)
Screen:writeString(" ======================== ",1,7,999)
Screen:writeString(" ======================== ",1,8,999)
Screen:writeString(" ======================== ",1,9,999)}
if (Timer == 26){concmd("say Loading...65%")
Screen:setNumber("Reset",5)
Screen:writeString(" ======================== ",1,1,999)
Screen:writeString(" ======================== ",1,2,999)
Screen:writeString(" ======================== ",1,3,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |    Loading..65%      | ",1,5,999)
Screen:writeString(" |----------------------| ",1,6,999)
Screen:writeString(" ======================== ",1,7,999)
Screen:writeString(" ======================== ",1,8,999)
Screen:writeString(" ======================== ",1,9,999)}
if (Timer == 35){concmd("say Loading...86%")
Screen:setNumber("Reset",5)
Screen:writeString(" ======================== ",1,1,999)
Screen:writeString(" ======================== ",1,2,999)
Screen:writeString(" ======================== ",1,3,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |    Loading..86%      | ",1,5,999)
Screen:writeString(" |----------------------| ",1,6,999)
Screen:writeString(" ======================== ",1,7,999)
Screen:writeString(" ======================== ",1,8,999)
Screen:writeString(" ======================== ",1,9,999)}
if (Timer == 49){concmd("say Loading...99%")
Screen:setNumber("Reset",5)
Screen:writeString(" ======================== ",1,1,999)
Screen:writeString(" ======================== ",1,2,999)
Screen:writeString(" ======================== ",1,3,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |    Loading..99%      | ",1,5,999)
Screen:writeString(" |----------------------| ",1,6,999)
Screen:writeString(" ======================== ",1,7,999)
Screen:writeString(" ======================== ",1,8,999)
Screen:writeString(" ======================== ",1,9,999)}
if (Timer == 55){concmd("say Loading...Done")
Screen:setNumber("Reset",5)
Screen:writeString(" ======================== ",1,1,999)
Screen:writeString(" ======================== ",1,2,999)
Screen:writeString(" ======================== ",1,3,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |    Loading..Done     | ",1,5,999)
Screen:writeString(" |----------------------| ",1,6,999)
Screen:writeString(" ======================== ",1,7,999)
Screen:writeString(" ======================== ",1,8,999)
Screen:writeString(" ======================== ",1,9,999)
}
if (Timer == 60){concmd("say Welcome to FailCake Software")}
if (Timer == 60){concmd("say Please chose your Software")}
if (Timer == 60){Screen:setNumber("Reset",5)
Screen:writeString("FailCake SoftWare",1,1,999)
Screen:writeString("Chose The Software",1,4,999)
Screen:writeString("1 = Ads Software",1,6,999)
Screen:writeString("2 = Not Done",1,7,999)
Screen:writeString("3 = Credits ",1,8,999)
Screen:writeString("4 = Weapons Shop",1,9,999)
Screen:writeString("5 = Players in Server",1,10,999)}
if (first()) { 
    
    Page = 0

     }

      if (~Weapons & Weapons) {

      Page = 6
}

      if (~Shopoff & Shopoff) {

      Page = 7

      
      }

    if (~Time & Time) {

      Page = 9

      
      }

    if (~Shopon & Shopon) {

      Page = 8

      
      }

      if (~Off & Off) {

      Page = 5

      
      }

      if (~Menu & Menu) {

      Page = 4

      
      }

      if (~Page1 & Page1) {

      Page = 1

      
      }

      if (~Ads & Ads) {

      Page = 2

      }

      if (~Credits & Credits) {

      Page = 3

      }

      if (Page == 1) {
      Screen:setNumber("Reset",2)
    
    Screen:writeString("FailCake SoftWare",1,1,999)
      Screen:writeString("Not DONE!!!",1,4,911)
      }
      if (Page == 2) {

      Screen:setNumber("Reset",5)
Screen:writeString("FailCake SoftWare",1,1,999)
Screen:writeString("Ads Here! 3 Ads Avaiable",1,2,911)

Screen:writeString(" Price Per ad = 300$      ",1,4,326)
Screen:writeString(" |----------------------| ",1,10,999)
Screen:writeString(" |       ADS!!!         | ",1,11,999)
Screen:writeString(" |----------------------| ",1,12,999)
Screen:writeString(" |----------------------| ",1,10,999)
Screen:writeString(" |       ADS!!!         | ",1,11,999)
Screen:writeString(" |----------------------| ",1,12,999)
Screen:writeString(" |----------------------| ",1,14,999)
Screen:writeString(" |       ADS!!!         | ",1,15,999)
Screen:writeString(" |----------------------| ",1,16,999)
      }

 if(Page == 3) {
    Screen:setNumber("Reset",3)
    Screen:writeString("FailCake SoftWare",1,1,999)
    Screen:writeString(" Credits : ",1,4,911)
    Screen:writeString(" All made by [SM]FailCake :D ",1,6,999)
}

if(Page == 4) {
    Screen:setNumber("Reset",6)
Screen:writeString("FailCake SoftWare",1,1,999)
Screen:writeString("Chose The Software",1,4,999)
Screen:writeString("1 = Ads Software",1,6,999)
Screen:writeString("2 = Not Done",1,7,999)
Screen:writeString("3 = Credits ",1,8,999)
Screen:writeString("4 = Weapons Shop",1,9,999)
Screen:writeString("5 = Players in Server",1,10,999)
}

if(Page == 5) {
Screen:setNumber("Reset",7)
Screen:writeString("FailCake SoftWare Offline",1,1,999)
Screen:writeString("For Maintenance",1,3,600)
Screen:writeString(" |----------------------| ",1,13,999)
Screen:writeString(" |    Please Wait...    | ",1,14,356)
Screen:writeString(" |----------------------| ",1,15,999)

}

if(Page == 6) {
    Screen:setNumber("Reset",12)
    #Set Up The GUI
    Screen:writeString("FailCake Software",1,1,999)
    Screen:writeString("Guns List for Sale!",1,2,999)
    Screen:writeString("Gun:       Price:     Stock?",1,4,911)
 
    #Prices For Guns
    ShotgunPrice = 200
    MAC10Price = 300
    AK47Price = 400
    SniperPrice = 500
    M16Price = 400
    MP5Price = 350

#Display Prices
Screen:writeString("Shotgun     $"+ShotgunPrice+"           ",0,6,999) 
Screen:writeString("MAC-10      $"+MAC10Price  +"           ",0,7,999)
Screen:writeString("AK-47       $"+AK47Price   +"           ",0,8,999)
Screen:writeString("M-16        $"+M16Price    +"           ",0,9,999)
Screen:writeString("Sniper      $"+SniperPrice +"           ",0,10,999)
Screen:writeString("MP-5        $"+MP5Price    +"           ",0,11,999)
#Display Stock
if(!R1){Screen:writeString("No!",27,6,900,V1*60)}else{Screen:writeString("Yes",27,6,999,V1*60)}
if(!R2){Screen:writeString("No!",27,7,900,V2*60)}else{Screen:writeString("Yes",27,7,999,V2*60)}
if(!R3){Screen:writeString("No!",27,8,900,V3*60)}else{Screen:writeString("Yes",27,8,999,V3*60)}
if(!R4){Screen:writeString("No!",27,9,900,V4*60)}else{Screen:writeString("Yes",27,9,999,V4*60)}
if(!R5){Screen:writeString("No!",27,10,900,V5*60)}else{Screen:writeString("Yes",27,10,999,V5*60)}
if(!R6){Screen:writeString("No!",27,11,900,V6*60)}else{Screen:writeString("Yes",27,11,999,V6*60)}

}

if(Page == 7) {
Screen:setNumber("Reset",7)
Screen:writeString("FailCake SoftWare",1,1,999)
Screen:writeString(" |----------------------| ",1,4,999)
Screen:writeString(" |  GunShop Is Closed   | ",1,5,911)
Screen:writeString(" |----------------------| ",1,6,999)
}

if(Page == 9) {
Screen:setNumber("Reset",12)
Screen:writeString("FailCake SoftWare",1,1,999)
Screen:writeString("Players in server :",1,2,600)
Screen:writeString(entity(1):name(),1,4,999)
Screen:writeString(entity(2):name(),1,5,999)
Screen:writeString(entity(3):name(),1,6,999)
Screen:writeString(entity(4):name(),1,7,999)
Screen:writeString(entity(5):name(),1,8,999)
Screen:writeString(entity(6):name(),1,9,999)
}

##PROTECTION SISTEM MUAHAHAHAH##

if(duped()){selfDestructAll()}
