Solved Date on my country

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

christianmv84

Active Member
Jul 20, 2017
50
0
0
59
Hello, how can I make the date of my country? that is to say with the argument / Expression% now% I put the date, but that date is where the host comes from, and I want the date of each person in his country to come out
 
I don't believe you can do what you want for each person. You can change the time zone for the server itself, usually through an option on your panel or by contacting your host provider, but that will not display differently for other players.
Additionally you can change up the format with skript mirror(there's a tutorial for that in the tutorial section forum).
 
I don't believe you can do what you want for each person. You can change the time zone for the server itself, usually through an option on your panel or by contacting your host provider, but that will not display differently for other players.
Additionally you can change up the format with skript mirror(there's a tutorial for that in the tutorial section forum).

No, thanks, I will do it in another way I will put the time played by each person and that's it, thank you for your help anyway.
 
No, thanks, I will do it in another way I will put the time played by each person and that's it, thank you for your help anyway.
Else other Hint:

You could doing this with "url" stuff. (Get Country of player, then search browser where add supportin "Raw/Json" so that you can get Everythings from Url. request.)
 
Else other Hint:

You could doing this with "url" stuff. (Get Country of player, then search browser where add supportin "Raw/Json" so that you can get Everythings from Url. request.)

You know how I can reset the statistics of all at once, players connected and not connected! everybody?

code_language.skript:
command /resetstats:
    permission: {@StaffPermission}
    permission message: {@MensajeComandos}
    trigger:
        delete {kills.%player%}
        delete {deaths.%player%}
        delete {killstreak.%player%}
        delete {gapple.%player%}
        delete {place.%player%}
        delete {hour::%player%}
        delete {minute::%player%}
        delete {second::%player%}
        send "{@Prefix} &7Las &aStats &7han sido reseteadas correctamente"

With that command you just reset them to me

And with this too

code_language.skript:
command /resetstats:
    permission: {@StaffPermission}
    permission message: {@MensajeComandos}
    trigger:
        set {kills.%player%} to 0
        set {deaths.%player%} to 0
        set {killstreak.%player%} to 0
        set {gapple.%player%} to 0
        set {place.%player%} to 0
        set {hour::%player%} to 0
        set {minute::%player%} to 0
        set {second::%player%} to 0
        send "{@Prefix} &7Las &aStats &7han sido reseteadas correctamente"
 
You know how I can reset the statistics of all at once, players connected and not connected! everybody?

code_language.skript:
command /resetstats:
    permission: {@StaffPermission}
    permission message: {@MensajeComandos}
    trigger:
        delete {kills.%player%}
        delete {deaths.%player%}
        delete {killstreak.%player%}
        delete {gapple.%player%}
        delete {place.%player%}
        delete {hour::%player%}
        delete {minute::%player%}
        delete {second::%player%}
        send "{@Prefix} &7Las &aStats &7han sido reseteadas correctamente"

With that command you just reset them to me

And with this too

code_language.skript:
command /resetstats:
    permission: {@StaffPermission}
    permission message: {@MensajeComandos}
    trigger:
        set {kills.%player%} to 0
        set {deaths.%player%} to 0
        set {killstreak.%player%} to 0
        set {gapple.%player%} to 0
        set {place.%player%} to 0
        set {hour::%player%} to 0
        set {minute::%player%} to 0
        set {second::%player%} to 0
        send "{@Prefix} &7Las &aStats &7han sido reseteadas correctamente"
It's resetting yours because you have %player% in there. You need to add an argument to your command that includes a player:
/resetstats <player>
then instead of %player%, use %arg 1%
 
It's resetting yours because you have %player% in there. You need to add an argument to your command that includes a player:
/resetstats <player>
then instead of %player%, use %arg 1%

I did something simpler, change the name of the variable and you're done
 
You know how I can reset the statistics of all at once, players connected and not connected! everybody?

code_language.skript:
command /resetstats:
    permission: {@StaffPermission}
    permission message: {@MensajeComandos}
    trigger:
        delete {kills.%player%}
        delete {deaths.%player%}
        delete {killstreak.%player%}
        delete {gapple.%player%}
        delete {place.%player%}
        delete {hour::%player%}
        delete {minute::%player%}
        delete {second::%player%}
        send "{@Prefix} &7Las &aStats &7han sido reseteadas correctamente"

With that command you just reset them to me

And with this too

code_language.skript:
command /resetstats:
    permission: {@StaffPermission}
    permission message: {@MensajeComandos}
    trigger:
        set {kills.%player%} to 0
        set {deaths.%player%} to 0
        set {killstreak.%player%} to 0
        set {gapple.%player%} to 0
        set {place.%player%} to 0
        set {hour::%player%} to 0
        set {minute::%player%} to 0
        set {second::%player%} to 0
        send "{@Prefix} &7Las &aStats &7han sido reseteadas correctamente"

I did something simpler, change the name of the variable and you're done
this is why you use list variables
code_language.skript:
delete {kills::*}
changing the variable name is a horrible alternative to reset variables for every player especially if you already had a lot of variables saved now they are just taking up space in the variable file
 
this is why you use list variables
code_language.skript:
delete {kills::*}
changing the variable name is a horrible alternative to reset variables for every player especially if you already had a lot of variables saved now they are just taking up space in the variable file

But it's simple and it works correctly
 
But it's simple and it works correctly
its 1000000x worse than properly doing it with list variables. you should really really really use them
code_language.skript:
#edit kills of a player
add 1 to {kills::%player%}

#delete one player's kills
delete {kills::%player%}

#delete everyone's kills
delete {kills::*}
 
Status
Not open for further replies.