Solved 1 Time use command

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

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hey, How to do command 1 time use command like /relciam on HCF servers. Thanks.
 
Code:
command /relciam:
    trigger:
        if {server::command::relciam::%player%} is not set:
            set {server::command::relciam::%player%} to "You can't use this command anymore!"
        else:
            send "&7%{server::command::relciam::%player%}%"
 
Code:
command /relciam:
    trigger:
        if {server::command::relciam::%player%} is not set:
            set {server::command::relciam::%player%} to "You can't use this command anymore!"
        else:
            send "&7%{server::command::relciam::%player%}%"
ty
 
Maybe it will be: ( My Example of it )

Code:
on skript load:
    set {guess::%player%} to 1

every 24 hours:
    clear {_RandomNumber}
    set {_RandomNumber} to random intiger between 1 and 100
    set {guess::%player%} to 1 for all players

command /guess %-arg%:
    ussage: &4You must put Number here!
    trigger:
        if %-arg% is {_RandomNumber}:
            send “&aCorrect!” to player
            execute command “/money add %player% 100000”
            set {guess::%player%} to 0
        else:
            send “&4Incorrect!” to player
            set {guess::%player%} to 0

on command /guess %-arg%:
    if {guess::%player%} is 0:
        stop
        send “&4You can’t use this command twice! Try Tommorow!” to player

command /HintAdmin:
    permisson: Guess.Admin
    trigger:
        send “&4Correct answer:&7 {_RandomNumber}” to player

Idk if it send The Correct Number at AdminGuess but try it i didnt tested it so there can be a Mistake
 
Last edited: