how to use variables on wait {gg} second

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

mynameisjosep

Member
Apr 25, 2020
29
0
0
23
hello guys i want two script
the first script i want like this

command /mute [<player>] [<text>] [<text>]:
permission: mute.exe
usage: /mute
trigger:
if arg-1 is set:
if arg-2 is set:
if arg-3 is set:
if %arg-2% is contains "m":

i want this but tihs is not working

on join:
if {muted::%player%} is set:
wait {second::} minute

this is black marked is too not working


 
can you send me the full skript or is that all?
[doublepost=1591979698,1591979478][/doublepost]oh so you want a mute skript made?
 
can you send me the full skript or is that all?
[doublepost=1591979698,1591979478][/doublepost]oh so you want a mute skript made?
Code:
command /mute [<player>] [<text>] [<text>]:
    permission: sutur.exe
    usage: /mute isim süre sebeb
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-3 is set:
                    if %arg-2% is contains "m":
                        set {muted::%arg-1%} to true
                        set {second::%player%} to true
                        set {second::%player%} to arg-2
                        send "&7%arg-2% you muted" to arg-1
                        wait %arg-2% minute
                        delete {muted::%arg-1%}
here full code
 
for all of those {muted::%arg-1%} or all the others remove the colons and put a . so it looks like {muted.%arg-1%} and also you have to add a
on chat:
if {muted.%player%} is true:
cancel event
send "&cYou are muted" to player

also when it says if arg-2 is contains "m": make that if arg-2 contains "m":
also if you already have {second.%player%} set to arg-2, arg-2 contains a letter and i think that doesnt work and why set {second.%player%} to true if your setting it to arg-2
 
for all of those {muted::%arg-1%} or all the others remove the colons and put a . so it looks like {muted.%arg-1%} and also you have to add a
on chat:
if {muted.%player%} is true:
cancel event
send "&cYou are muted" to player

also when it says if arg-2 is contains "m": make that if arg-2 contains "m":
also if you already have {second.%player%} set to arg-2, arg-2 contains a letter and i think that doesnt work and why set {second.%player%} to true if your setting it to arg-2
if i want to do wait {second::} second what i gonna do ?
 
Use timespan variable or argument and/or parsing:
Code:
/mute [<player>] [<timespan>] [<text>]:
You need to write "3 minutes". But then you can use:
Code:
set {_time} to arg-2
wait {_time}

If you want to use "m" for minutes or "s" for seconds, I can send you something more complicated into PM.
 
Use timespan variable or argument and/or parsing:
Code:
/mute [<player>] [<timespan>] [<text>]:
You need to write "3 minutes". But then you can use:
Code:
set {_time} to arg-2
wait {_time}

If you want to use "m" for minutes or "s" for seconds, I can send you something more complicated into PM.
if i wanna do ??? its will work ????
Code:
wait {_time} minute
 
You cannot add anything after the variable, but you can do this:
Code:
set {_number} to YOUR-ARGUMENT
set {_time} to "%{_number}% minutes" parsed as timespan
wait {_time}
Note that the argument must only be a number (it can be text, number or integer argument but player has to put a number in it).
 
You cannot add anything after the variable, but you can do this:
Code:
set {_number} to YOUR-ARGUMENT
set {_time} to "%{_number}% minutes" parsed as timespan
wait {_time}
Note that the argument must only be a number (it can be text, number or integer argument but player has to put a number in it).
example can you do 1 minutes ?
 
You cannot add anything after the variable, but you can do this:
Code:
set {_number} to YOUR-ARGUMENT
set {_time} to "%{_number}% minutes" parsed as timespan
wait {_time}
Note that the argument must only be a number (it can be text, number or integer argument but player has to put a number in it).
you can XD, just change <timespan> to <integer> and will work without problems

Code:
wait arg-2 minutes
 
Status
Not open for further replies.