offline player in variable

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

    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.

Troldepus2005

Member
Jul 4, 2020
2
0
1
Hello i want to make it so i can add 1 to a player who is offline but i don't know what to replace arg-2 with. So i can use {%player%::amountadvertise}. When they join and get a reward



command /ad [<integer>] [<offline player>]:
permission: console
trigger:
add arg-1 to {%arg-2%::amountadvertise}
 
any errors when reloading?
Also, if you want only the console to execute the command, you can add
Code:
executable by: console

Also, instead of adding the first argument, simply set the variable to the argument, that is faster.
Code:
command /ad [<integer>] [<offline player>]:
    executable by: console
    trigger:
        add arg-1 to {%arg-2%::amountadvertise}
 
Status
Not open for further replies.