Solved Help with parsing arguments!

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

Adrihun

Member
Feb 1, 2017
368
6
0
If an admin gives 5000 coins or more to a player it says "Sorry, thats too much!"
Please help me, i want to add this but idk how to do it.

Also, how do you make it so if the admin types in something like /moneyset Name Hello, so not a number it will say "Use numbers, not letters!"

Thanks

code_language.skript:
command /moneyset [<offline player>] [<number>]:
    permission: money.set
    permission message: &4No Permission!
    trigger:
        arg 1 is set:
            arg 2 is set:
                if arg 1 is online:
                    if arg 1 is player:
                        send "&4You cant change the amount of rubies YOU have."
                        stop
                    difference between {sql_.diff.setrubies::%player%} and now is less than 30 seconds:
                        send "&4You used this command too many times!"
                        stop
                    set {sql_.diff.setrubies::%player%} to now
                    {@run_async} is "true":
                        $ thread
                    set {_message} to addRubies(arg 1, arg 2, 1)
                    send "&aSuccess!"

                else:
                    send "&4Player Offline!"
            else:
                send "&6Wrong usage."
        else:
            send "&6Wrong usage."
[doublepost=1492112839,1492048101][/doublepost]bump
 
It seems like you're to lazy to do that.
That's basic stuff, which everyone who is using Skript should know.
Did you already searched in the docs?
 
It seems like you're to lazy to do that.
That's basic stuff, which everyone who is using Skript should know.
Did you already searched in the docs?
I'm serious. I actually don't know, i have tried searching but didn't find anything yet. Please help me if you know how to do it.
 
Status
Not open for further replies.