1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Stopping Spambots

Discussion in 'Skript' started by Adrihun, Feb 28, 2017.

Thread Status:
Not open for further replies.
  1. Adrihun

    Adrihun Member

    Joined:
    Feb 1, 2017
    Messages:
    368
    Likes Received:
    6
    Is there a way to make it so when a player joins they have to move so they can chat, this is good because then there won't be any SPAMBOTS. Thanks
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Just use my anti spam script if you want to combat spambots.
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    I am sure there is a way to make it so you have to move before you can chat :/
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    This should do the job, no addons required

    Code (Skript):
    1.  
    2. on join:
    3.   set {playercanchat::%player%} to player's location
    4. on chat:
    5.   if {playercanchat::%player%} is set:
    6.     if {playercanchat::%player%} is player's location:
    7.       cancel event
    8.     else:
    9.       delete {playercanchat::%player%}
    10. on script unload:
    11.   delete {playercanchat::*}
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    thanks
    --- Double Post Merged, Mar 1, 2017, Original Post Date: Mar 1, 2017 ---
    [16:54:29 WARN]: [Skript] Possible name conflict of variables {playercanchat::*} and {playercanchat::%player%} (there might be more conflicts). (Join.sk, line 57: delete {playercanchat::*}')
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Just disable that in the config.sk (variable conflict warnings)
     
    • Like Like x 1
    • Agree Agree x 1
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    [​IMG]
    Why are you vandalizing all of your solved threads? It defeats the entire purpose of this forum...

    Threads should remain intact so people with similar problems can reference them in the future.

    Don't just delete your question after it's been solved... :emoji_face_palm:
     
    #8 ShaneBee, Mar 27, 2017
    Last edited by a moderator: Mar 27, 2017
    • Agree Agree x 3
Thread Status:
Not open for further replies.

Share This Page

Loading...