anything wrong with this?

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

Doorstep_

Member
Dec 18, 2020
16
0
1
16
command /Something:
Trigger:
if {server::command::Something::%player%} is not set:
send "Nice, How did you find this? Well here's your prize."
give player 32 diamonds
set {server::command::Something::%player%} to "You can't use this command anymore!"
else:
send "&7%{server::command::Something::%player%}%"
 
Hey there!

First off here, please make sure you use the CODE tags when writing your code!

- At the end of a "send" you gotta say "to player" (There are more, but player is the most common one used.). Example:
Code:
  send "Hello there!" to player

- Try instead of "give player 32 diamonds" do
Code:
execute console command "/give %player% diamond 32"

- You have to set A variable to true or false or something else like a number or a letter, ect.
- You can shorten the Variable a lot. just use {Something.%player%}

Ill try and remake your Skript. Doesn't mean I'm perfect :emoji_slight_smile:

Code:
command /Something:
    trigger:
        if {something.%player%} is not set:
            set {something.%player%} to false
        send "&7How did you find this? Anyways, heres a prize!" to player
        if {something.%player%} is false:
            execute console command "give %player% diamond 32"
            wait 2 ticks
            set {something.%player%} to true
        else:
            if {something.%player%} is true:
                send "&7You already found this command! You cannot use it anymore."to player
[/I]
 
Status
Not open for further replies.