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!

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

I need a skript (pretty long)

Discussion in 'Requests' started by FrostPVP™️, Mar 2, 2021.

  1. FrostPVP™️

    FrostPVP™️ Active Member

    Feb 12, 2021
    Likes Received:
    I need a /report skript

    - if they only do /report send "&cPlease report a &6Player &cand type a &eReason"

    - Message if they didn't put in a player: send "&cYou need to choose a player!"

    - Message if they didn't put in a reason: send "&cYou need to have a reason!"

    - Message if they try to report thereself: send "&cYou can't report yourself!"

    - Message if they reported the player: send "&aYou reported (the player they reported)"

    - Message for cooldown: send "You need to wait (time they have to wait)

    - 10 second cooldown

    - if they get to 5 warns /tempban player 1 hour "&cYou have to many warns"

    - /report <player> <reason>

    - permission sk.report (for /reports)

    - permission message: send "&cInsufficient Permission"

    - /reports (shows reports)

    /report [<offlineplayer>] [<text>]
    &c[&6Warning System&c] &6FrostPVP &cwarned &6FrostPVP
    &c[&6Warning System&c] He not has 2 warn(s).
    &c[&6Warning System&c] Reason: &6Hacking

    Thank you [​IMG]
    #1 FrostPVP™️, Mar 2, 2021
    Last edited: Mar 2, 2021
  2. Sonafi

    Sonafi Member

    Feb 26, 2021
    Likes Received:
    Code (Text):
    1. command /report <player> <text>:
    2.   usage: &c/report <player name> <reason> - Please report a &6Player &cand type a &eReason
    3.   trigger:
    4.     if {reportcooldown::%player%} <= 0:
    5.       if arg-1 is set:
    6.         if {playerreports::%player%} contains "%arg-1%":
    7.           send "&cYou already reported the player %arg-1%!"
    8.           stop
    9.         else:
    10.           if arg-2 is set:
    11.             send "&aYou have successfully reported &c%arg-1% &afor: %arg-2%"
    12.             set {playerreports::%player%} to "%arg-1%"
    13.             add 1 to {warns::%arg-1%}
    14.             add "%player% reported %arg-1% for: %arg-2%" to {reports::*}
    15.             if {warns::%arg-1%} is 5:
    16.               make console execute command "/tempban %arg-1% 1h &cYou have to many warns"
    17.               set {warns::%arg-1%} to 0
    18.     else:
    19.       send "&cYou have to wait another &4%{reportcooldown::%player%}% &cseconds."
    20.     set {reportcooldown::%player%} to 10
    21.     wait 20 ticks
    22.     remove 1 from {reportcooldown::%player%}
    23.     wait 20 ticks
    24.     remove 1 from {reportcooldown::%player%}
    25.     wait 20 ticks
    26.     remove 1 from {reportcooldown::%player%}
    27.     wait 20 ticks
    28.     remove 1 from {reportcooldown::%player%}
    29.     wait 20 ticks
    30.     remove 1 from {reportcooldown::%player%}
    31.     wait 20 ticks
    32.     remove 1 from {reportcooldown::%player%}
    33.     wait 20 ticks
    34.     remove 1 from {reportcooldown::%player%}
    35.     wait 20 ticks
    36.     remove 1 from {reportcooldown::%player%}
    37.     wait 20 ticks
    38.     remove 1 from {reportcooldown::%player%}
    39.     wait 20 ticks
    40.     remove 1 from {reportcooldown::%player%}
    42. command /reports:
    43.   permission: sk.report
    44.   permission message: "&cInsufficient Permission"
    45.   trigger:
    46.     send "&cSubmitted reports:" to player
    47.     send "%{reports::*}%" to player
    49. command /reportsclear:
    50.   permission: sk.report
    51.   permission message: "&cInsufficient Permission"
    52.   trigger:
    53.     set {reports::*} to "<none>"
    54.     send "&2Reports have been cleared!" to player
    I made this but there are a few things I couldn't do:
    The messages to specify different things because of the "usage: ..."
    You can report yourself
    If you report player1 then player2 you can report player1 again
    The /reports is unorganized and can be hard to check all if there were lots of reports

    And I added /reportsclear which allows you to clear all the reports.
    • Agree Agree x 1
  3. FrostPVP™️

    FrostPVP™️ Active Member

    Feb 12, 2021
    Likes Received:
    This is perfect I will test it tomorrow Thank You <3
    • Friendly Friendly x 1

Share This Page