1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Offline Jail

Discussion in 'Skript' started by Michael, Mar 13, 2019.

Tags:
  1. M

    Michael Member

    Joined:
    Jan 28, 2017
    Messages:
    1
    Likes Received:
    0
    I have this skript right here made for jailing people. I just want an option that makes it possible to jail "Offline Players" :emoji_slight_smile: Maybe someone can help?

    Options:
    Prefix: &7[&cISOLATION&7]
    KauktionPrisGangeMedTid: 6

    command /ej [<offline player>] [<text>]:
    permission: ej.vagt
    permission message: &8&l&7[&cISOLATION&7] &7Du er ikke vagt! &7- &8[&4&oIsolation: V2.1&8]&7!
    trigger:
    if {jailed.%arg 1%} is greater than 0:
    message "&7[&cISOLATION&7] &c%arg-1% &7er allerede i jail!"
    stop
    if arg 1 is not set:
    message "&4&oHer er en liste over jail grunde!"
    message "&7[&cISOLATION&7] &fVåben &8&l- &7våbenbesiddelse!"
    message "&7[&cISOLATION&7] &fArmor &8&l- &7armorbesiddelse!"
    message "&7[&cISOLATION&7] &fSlag &8&l- &7slag på fange!"
    message "&7[&cISOLATION&7] &fSlagvagt &8&l- &7slag på vagt!"
    message "&7[&cISOLATION&7] &fNarko &8&l- &7narkobesiddelse!"
    message "&7[&cISOLATION&7] &fNoPvP &8&l- &7nopvp abuse!"
    message "&7[&cISOLATION&7] &fProvo &8&l- &7provokerende adfærd!"
    message "&7[&cISOLATION&7] &fV+A &8&l- &7våben & armorbesiddelse!"
    stop
    if arg 2 is not "provo", "våben", "armor", "narko", "v+a", "a+v", "slagvagt", "nopvp" or "slag":
    message "&4&oHer er en liste over jail grunde!"
    message "&7[&cISOLATION&7] &fVåben &8&l- &7våbenbesiddelse!"
    message "&7[&cISOLATION&7] &fArmor &8&l- &7armorbesiddelse!"
    message "&7[&cISOLATION&7] &fSlag &8&l- &7slag på fange!"
    message "&7[&cISOLATION&7] &fSlagvagt &8&l- &7slag på vagt!"
    message "&7[&cISOLATION&7] &fNarko &8&l- &7narkobesiddelse!"
    message "&7[&cISOLATION&7] &fNoPvP &8&l- &7nopvp abuse!"
    message "&7[&cISOLATION&7] &fProvo &8&l- &7provokerende adfærd!"
    message "&7[&cISOLATION&7] &fV+A &8&l- &7våben & armorbesiddelse!"
    arg 1 have permission "ej.vagt":
    message " &7[&cISOLATION&7] &7Du kan ikke jail andre vagter!"
    stop
    if arg 2 is "slag":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4slag på fange [C]&c i 5 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: slag på fange (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 4
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "provo":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4prvokerende adfærd [C]&c i 5 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: provokerende adfærd (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 4
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "slagvagt":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4slag på vagt [C]&c i 7 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: slag på vagt (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 6
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "narko":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4narkobesiddelse [C]&c i 10 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: narkobesiddelse (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 9
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "nopvp":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4nopvp abuse [C]&c i 15 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: nopvp abuse (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 14
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "v+a":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4våbenbesiddelse & armorbesiddelse [C]&c i 13 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: våbenbesiddelse & armorbesiddelse (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 12
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "våben":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4våbenbesiddelse [C]&c i 5 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: våbenbesiddelse (I C)"
    set {våbenc:%{uuid::%arg 1%}%} to true
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 4
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    if arg 2 is "a+v":
    if arg 1 have permission "C":
    broadcast "&8&l&7[&cISOLATION&7] &7%arg 1% &cer blevet sat i isolation af &7%player% &cmed grunden: &4våbenbesiddelse & armorbesiddelse [C]&c i 13 minutter!"
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: våbenbesiddelse & armorbesiddelse (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 12
    set {Jailed.Kautionsekunder.%arg 1%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is not set:
    set {achievement.%player%.jail1} to 1
    if {achievement.%player%.jail1} is equal to 1:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 2:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 3:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 4:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 5:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 6:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 7:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 8:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 9:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 10:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 11:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 12:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 13:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 15:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 16:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 17:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 18:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 19:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 21:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 22:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 23:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 24:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 25:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 26:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 27:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 28:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 29:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 31:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 32:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 33:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 34:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 35:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 36:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 37:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 38:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 39:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 41:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 42:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 43:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 44:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 45:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 46:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 47:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 48:
    add 1 to {achievement.%player%.jail1}
    if {achievement.%player%.jail1} is equal to 49:
    add 1 to {achievement.%player%.jail1}
    set {achievement.%player%.jail1} to true
    set {achievement.%player%.jail1.anskaffet} to "%day%-%month%-%year%, %hour%:%minute%:%second%"
    send "&b&m---&r &3&m---&r &b&m---&r &3ACHIEVEMENT &r&b&m---&r &3&m---&r &b&m---&r" to player
    send "&3Navn:" to player
    send "&bKommende direktør!" to player
    send "&3Beskrivelse:" to player
    send "&7Sæt 50 spillere i jail!" to player
    send "&b&m---&r &3&m---&r &b&m---&r &3&m---&r &b&m---&r &3&m---&r &b&m---&r &3&m---&r &b&m---&r" to player
    stop
    if arg 2 is "armor":
    if arg 1 have permission "C":
    teleport arg-1 to location of {Cjail}
    execute console command "tm message %arg 1% &4&lISOLATION \n &cBegundelse: armorbesiddelse (I C)"
    set {Jailed.%arg 1%} to 1
    set {Unjailed.%arg 1%} to 0
    set {Jailed.Sekunder.%arg 1%} to 60
    set {Jailed.Minutter.%arg 1%} to 12
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%arg 1%}
    add 1 to {jails.%player%}

    command /unjail [<Player>]:
    trigger:
    if arg 1 is not set:
    message "&7[&cISOLATION&7] &cDu skal vælge en spiller!"
    stop
    else:
    if player has permission "Ej.vagt":
    if {Jailed.%arg 1%} is 1:
    set {Unjailed.%arg 1%} to 1
    set {jailed.%arg 1%} to 0
    delete {Jailed.Minutter.%arg 1%}
    delete {Jailed.Sekunder.%arg 1%}
    delete {Jailed.Kautionsekunder.%arg 1%}
    delete {Jailed.Kautionpris.%arg 1%}
    set action bar of arg-1 to "&cDu er nu blevet løsladt!"
    send "&7[&cISOLATION&7] &2%arg 1% &7er blevet unjailet af &a%player%&7!"
    if arg-1 has permission "C":
    teleport arg-1 to location of {UnjailedCSpawn}
    if arg-1 has permission "B":
    teleport arg-1 to location of {UnjailedBSpawn}
    if arg-1 has permission "A":
    teleport arg-1 to location of {UnjailedASpawn}
    else:
    send "&7[&cISOLATION&7] &c%arg-1%&7 &7er ikke i jail!"
    command /offlineunjail [<offline player>]:
    trigger:
    set {offlinejailv::%uuid of arg 1%} 0
    delete {offlinejailv::%uuid of arg 1%}
    delete {jailed.%uuid of arg 1%}
    command /kaution [<Text>] [<Player>]:
    aliases: /k
    trigger:
    if arg 1 is not set:
    if arg 2 is not set:
    open chest with 6 rows named "&c&lKauktion" to player
    set {_p} to "%player%"
    set {_p} to "&aProfile"
    wait 1 tick
    set {_slot} to -1
    loop all players:
    if {Jailed.%loop-player%} is 1:
    set {Jailed.Kautionpris.%loop-player%} to 0
    Wait 5 tick
    add {Jailed.Kautionsekunder.%loop-player%} to {Jailed.Kautionpris.%loop-player%}
    wait 2 tick
    set {Jailed.Kautionpris.%loop-player%} to {Jailed.Kautionpris.%loop-player%} *{@KauktionPrisGangeMedTid}
    add 1 to {_slot}
    format slot {_slot} of player with loop-player's skull named "&c&l%loop-player%:" with lore "&aTid: &c%{Jailed.Minutter.%loop-player%}% minutter&a og &c%{Jailed.sekunder.%loop-player%}% sekunder&a || &aKoster: &c%{Jailed.Kautionpris.%loop-player%}%$" to close then run [make player execute command "/kaution køb %loop-player%"]
    if arg 1 is "køb":
    if arg 2 is not set:
    send "&7[&cISOLATION&7] &aDu skal indtaste et navn til sidst." to player

    if arg 1 is "køb":
    if arg 2 is set:
    set {Jailed.Kautionpris.%arg-1%} to 0
    Wait 5 tick
    add {Jailed.Kautionsekunder.%arg-1%} to {Jailed.Kautionpris.%arg-1%}
    wait 2 tick
    set {Jailed.Kautionpris.%arg-1%} to {Jailed.Kautionpris.%arg-1%} *{@KauktionPrisGangeMedTid}
    if {Unjailed.%arg 1%} is 1:
    send "&7[&cISOLATION&7] &c%arg-1%&a er ikke Jailet."
    if {jailed.%arg 1%} is 1:
    if balance of player is greater than or equal to {Jailed.Kautionpris.%arg-1%}:
    send "&7[&cISOLATION&7] &aDu har nu købt %arg-1% ud af jail. Det kostede dig &c%{Jailed.Kautionpris.%arg-1%}%$"
    execute console command "eco take %player% %{Jailed.Kautionpris.%arg-1%}%"
    send "&7[&cISOLATION&7] &c%player%&a købte &c%arg-1%&a ud af jail &8(&6%{Jailed.Kautionpris.%arg-1%}%$&8)"
    set action bar of arg-1 to "&aDu er nu blevet løsladt!"
    delete {Jailed.%arg-1%}
    delete {Unjailed.%arg-1%}
    delete {Jailed.Minutter.%arg-1%}
    delete {Jailed.Sekunder.%arg-1%}
    delete {Jailed.Kautionsekunder.%arg-1%}
    delete {Jailed.Kautionpris.%arg-1%}
    if player-argument has permission "C":
    teleport player-argument to location of {UnjailedCSpawn}
    if player-argument has permission "B":
    teleport player-argument to location of {UnjailedBSpawn}
    if player-argument has permission "A":
    teleport player-argument to location of {UnjailedASpawn}
    Else:
    send "&7[&cISOLATION&7] &aDu har ikke råd til at købe &c%arg-1%&a ud af jail. Det koster &c%{Jailed.Kautionpris.%arg 1%}%$&a, men du har &c%player's balance%$"

    command /ejset [<Text>]:
    trigger:
    if player has permission "*":
    if arg 1 is "C":
    send "&7[&cISOLATION&7] &7Dette er nu jail i C!"
    Set {CJail} to location of player
    if arg 1 is "B":
    send "&7[&cISOLATION&7] &7Dette er nu jail i B!"
    Set {BJail} to location of player
    if arg 1 is "A":
    send "&7[&cISOLATION&7] &7Dette er nu jail i A!"
    Set {AJail} to location of player
    if arg 1 is "unjailC":
    send "&7[&cISOLATION&7] &7Dette er nu unjail i C"
    set {UnjailedCSpawn} to location of player
    if arg 1 is "UnjailedBSpawn":
    send "&7[&cISOLATION&7] &7Dette er nu unjail i B"
    set {UnjailedBSpawn} to location of player
    if arg 1 is "UnjailedASpawn":
    send "&7[&cISOLATION&7] &7Dette er nu unjail i A"
    set {UnjailedASpawn} to location of player
    if arg 1 is not "C" or "B" or "A" or "UnjailedCSpawn" or "UnjailedBSpawn" or "UnjailedASpawn":
    send "&7[&cISOLATION&7] &aDu skal indtaste en valid tekst &8(&6C, B, A, UnjailedCSpawn, UnjailedBSpawn eller UnjailedASpawn&8)"
    else:
    send "&8[&3DarkstarPvP&8] &aDu har ikke tilladelse til at bruge denne kommando"

    on command "/spawn":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event
    on command "/suicide":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event
    on command "/warp":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event
    on command "/kit":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event
    on command "/as":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event
    on command "/k":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event
    on command "/kaution":
    if {Jailed.%event-player%} is 1:
    send "&7[&cISOLATION&7] &cDu kan ikke bruge denne command i isolation!" to event-player
    cancel event

    #Det her er til at ændre tiden på hvor lang tid der er til de bliver unjailed, du skal helst ikke ændre på det, beskederne må du selvfølgelig gerne, haha! :emoji_grinning:

    every 1 second:
    loop all players:
    if {Jailed.%loop-player%} is 1:
    if {Unjailed.%loop-player%} is 1:
    Else:
    remove 1 from {Jailed.Kautionsekunder.%loop-player%}
    remove 1 from {Jailed.Sekunder.%loop-player%}
    set action bar of loop-player to "&cDu løslades om &4&l%{Jailed.Minutter.%loop-player%}% min. &c&log &4&l%{Jailed.Sekunder.%loop-player%}% sek.&c! &8(&7KL. 00:00:00&8)"
    if {Jailed.Sekunder.%loop-player%} is 0:
    if {Unjailed.%loop-player%} is 1:
    Else:
    wait 5 tick
    add 60 to {Jailed.Sekunder.%loop-player%}
    remove 1 from {Jailed.Minutter.%loop-player%}
    if {Jailed.Minutter.%loop-player%} is -1:
    set {Unjailed.%loop-player%} to 1
    set {jailed.%loop-player%} to 0
    delete {Jailed.Minutter.%loop-player%}
    delete {Jailed.Sekunder.%loop-player%}
    delete {Jailed.Kautionsekunder.%loop-player%}
    delete {Jailed.Kautionpris.%loop-player%}
    set action bar of loop-player to "&cDu er nu blevet løsladt!"
    if loop-player has permission "C":
    teleport loop-player to location of {UnjailedCSpawn}
    if loop-player has permission "B":
    teleport loop-player to location of {UnjailedBSpawn}
    if loop-player has permission "A":
    teleport loop-player to location of {UnjailedASpawn}
    on join:
    if {våbenc:%{uuid::%player%}%} is true:
    set {jailed.%uuid of player%} to 1
    teleport player to location of {CJail}
    delete {våbenc:%{uuid::%player%}%}
    execute console command "tm message %player% &4&lISOLATION \n &cBegundelse: våbenbesiddelse (I C)"
    set {Jailed.%player%} to 1
    set {Unjailed.%player%} to 0
    set {Jailed.Sekunder.%player%} to 60
    set {Jailed.Minutter.%player%} to 4
    set {Jailed.Kautionsekunder.%player%} to 0
    wait 2 tick
    add 300 to {Jailed.Kautionsekunder.%player%}
    send "&7[&cISOLATION&7] &4HAHAHA &cdu er blevet jailed offline!" to player
    stop
    on connect:
    if {uuid::%player%} is not set:
    set {uuid::%player%} to player's uuid
     
  2. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    777
    Likes Received:
    50
    Medals:
    At first, format your code (code tags under the + or paste/haste-bin). You should also really do something about your code length, because noone would want to read that much code to find an error
     
  3. Ouma Shu

    Ouma Shu Active Member

    Joined:
    Dec 25, 2017
    Messages:
    25
    Likes Received:
    2
    Just check if the player is online, and if not do the same thing as online.
     
  4. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    301
    Likes Received:
    16
    If a code is +40 lines people normally don't even bother to look at it. It may be easier for you to copy and just paste it but you will not receive any help. And use list variables {test.%player%} --> {test::%player%}
     
Loading...