Solved Skript question, please read my description.

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

iamhuneey

New Member
Dec 12, 2020
6
0
1
26
Hey guys, I am a mostly beginner skript user, and I have a problem. If "player1" writes the captcha code, he is able to unlock player2's captcha code too. Can I solve this problem anyhow?
Code:
On join:
    if player's name is "player1" or "player2":
        set {captcha::check} to true
        wait 3 seconds
        message "&8(&b&lCaptcha&8) &aPlease type your code"
       
On quit:
    if player's name is "player1" or "player2":
        set {captcha::check} to false

On chat:
    if player's name is "player1" or "player2":
        if {captcha::check} is true:
            cancel event
        if message is "captchatest":
            set {captcha::check} to false
            message "&8(&b&lCaptcha&8) &aSuccessfully checked"
 
Last edited:
you need to Set it to a specific player: {captcha::check.%player%} smth like that so skript knows your talking about 1 specific player instead of the whole server :emoji_slight_smile:
 
Status
Not open for further replies.