a ban skript help plis

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 24, 2017
191
7
0
23
foroendertheth.foroactivo.com
The problem is there is an error in line 65 and every 1 second subtract 1 from {tempban::*}
I whant to do like a tempban skript the ban player's just stay in the lobby because they cant use the menu because they have {ban.%player%} true
code_language.skript:
command /advertencia <player> <text>:
    trigger:
        if {permisso.helper.%player%} is true:
            if arg 1 is set:
                if arg 2 is not set:
                    send "&cKillaura, malcomportamiento, mods"
                else:
                    if arg 2 is "killaura":
                        set {ban.%arg 1%} to true
                        send "{@logo}Kill aura tu ban sera asta que lo diga el staff" to arg 1
                        teleport the arg 1 to {lobby}
                    if arg 2 is "malcomportamiento":
                        add 1 to {advertencia.%arg 1%}
                        send "{@logo}Advertencia %{advertencia.%arg 1%}%/10"
                        if {advertencia.%arg 1%} is more than or equal to 10:
                            set {tempban.%arg 1%} to true
                            add 30 to {tempban::%arg 1%}
                            send "{@logo}Tienes 10 advertencias ban de 30 dias" to arg 1
                            teleport the arg 1 to {lobby}
                            wait 30 days#ignore this I goin to delete this
                            delete {ban.%arg 1%}
                    if arg 2 is "mods":
                        set {ban.%arg 1%} to true
                        add 30 to {tempban::%arg 1%}
                        send "{@logo}Ban 30 dias por usar algun tipo de mods" to arg 1
                        teleport the arg 1 to {lobby}
                    if arg 2 is "delete":
                        delete {advertencia.%arg 1%}
                        delete {ban.%arg 1%}
                        delete {tempban.%arg 1%}
        else:
            send "{@error}"
every 1 second:
    subtract 1 from {tempban::*}
on join:
    if {tempban::%player%} is less than 1:
        send "{@logo}Tu ban a terminado esperamos que te comportes mejor"
 
And what error? :emoji_slight_smile:

Try
code_language.skript:
every 1 second in world "%NAME_OF_YOUR_WORLD%":
Sometimes it's an error without worldname, probably it's a bug.

After ban you're setting {tempban:: player} arg to true and then you r trying to add or substract something from "true".
try to make different list of data values for Time-in-ban and Banned-list.
 
Last edited by a moderator:
And what error? :emoji_slight_smile:

Try
code_language.skript:
every 1 second in world "%NAME_OF_YOUR_WORLD%":
Sometimes it's an error without worldname, probably it's a bug.

I might be mistaken but after ban you're setting {tempban:: player} arg to true and then you r trying to add or substract something from "true".
try to make different list of data values for Time-in-ban and Banned-list.
Im trying to do on 30 days remove that variable form a player or every day subtarct 1 from every player and add 30 to baned players variable
 
You can't subtract 1 from a list. You should be using times, lists and uuids. the method is horrible right now.
umm can you show me and example because Im not too advance and whant to join my server just 2 minutes to test a code I made if for wend someones die victims gamemode is goin to be 3 and is goin to be teleported above the attacker then respawn
 
Status
Not open for further replies.