Chat | Help Please !

  • 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.
Feb 22, 2019
2
0
0
20
I'm Trying to make a Chat reward Like : furst one to say a Word get a Reward !
This is my code but its not Working

Code (Text):
command /code [<text>] [<text>]:
permission: code.exe
permission message: &cYou dont have permission for this command!
trigger:
if arg-1 is set:
if arg-1 is "create":
send " &cUsage /code create [text]"
else:
send " &cUsage /code create [text]"
stop
if arg-2 is set:
broadcast "&aFirst One to say '&5&l%arg-2%&a' Get reward"

on chat:
if message contains "%arg-2%":
broadcast "&b&l%sender% &bWinner and he got The reward"
if {code.%uuid of player%} is true:
wait 1 tick
set {code.%uuid of player%} to false
 
code_language.skript:
command create [<text>] [<text>]:
    trigger:
        arg-1 is set:
            arg-2 is set:
                arg-1 is "create":
                    set {answer} to arg-2
                    broadcast "First one to say %arg-2% gets a reward!"
                else:
                    send "there is nothing else lol"
            else:
                send "Almost correst, you need an answer lol"
        else:
            send "dude put sth in"
                   
on chat:
    if {answer} is set:
        message = {answer}:
            give player diamond named "WON"
            broadcast "%PLAYER% FIRST SAID %{answer}%"
            delete {answer}
 
Mark my answer as best or set topic to solved please
lol no it's not so good
[doublepost=1550932034,1550931809][/doublepost]
code_language.skript:
command create [<text>]:
    trigger:
        arg is set:
            set {word::content} to arg
            set {word::time} to now
        else:
            send "&c/create (word)"
                   
on chat:
    {word::content} is set
    message = {word::content}
    give player diamond named "WON"
    broadcast "%player% FIRST SAID %{word::content}% IN %difference between {word::time} and now%"
    clear {word::*}
 
Status
Not open for further replies.