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!


    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.

Fines list

Discussion in 'Skript' started by Deku, Jul 20, 2020.

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

    Deku Member

    Jul 12, 2020
    Likes Received:
    I would like to make commands to add the fine (already done), to remove it and to see the fines of that particular player .. How can I put a list of fines to that player? Here is my code for now

    Code (Text):
    3. command /multa [<player>] [<text>]:
    4.     usage: &cUso corretto: /multa (Player) (Motivo)
    5.     permission: fdo.registra.multa
    6.     permission message: &cNessun Permesso.
    7.     trigger:
    8.         set {_multe} to "Multe"  
    9.         set {_dataa} to "%now%"          
    10.         if arg-1 is not set:
    11.             send "&cNon hai inserito il giocatore!"
    12.         else:
    13.         loop all players:
    14.             add loop-player to {multe::%arg-1%::*}      
    15.             set {_player} to "%arg-1%"
    16.             set {motivo::%arg-1%} to arg 2      
    17.             set {agente::%executor%} to executor                  
    18.             if arg-2 is not set:
    19.                 send "&cNon hai messo il motivo" to executor  
    20.             else:
    21.                 send "&c&lHai aggiunto una multa a %{_player}%" to executor          
    24. command /multe [<player>]:
    25.     usage: &cUso corretto: /multe (Player) per vedere la lista delle multe di un player
    26.     permission: fdo.vedi.multa
    27.     permission message: &cNessun Permesso.
    28.     trigger:
    29.         if "%{multe::%arg-1%::*}%" contains "%arg-1%":
    30.             set {_multe} to "Multe"  
    31.             set {_dataa} to "%now%"
    32.             if arg-1 is not set:
    33.                 send "&cNon hai inserito il giocatore!"
    34.             else:
    35.                 set {_player} to "%arg-1%"
    36.                 set {_scadenza} to now
    37.                 add 5 day to {_scadenza}          
    38.                 send "&c&lMulte di %arg-1%" to executor
    39.                 send "" to executor
    40.                 send "&cMultato: &7%{_player}%"
    41.                 send "&cData: &7%{_dataa}%"
    42.                 send "&cMotivo: &7%{motivo::%arg-1%}%"
    43.                 send "&cScadenza: &7%{_scadenza}%"
    44.                 send "&cFatta da: &7%{agente::%executor%}%" to executor
    45.             stop  
    46.         else:  
    47.             send "&c&lQuesto giocatore non ha multe!"
    50. command /unmulta [<player>]:
    51.     usage: &cUso corretto: /unmulta (Player) per rimuovere le multe
    52.     permission: fdo.vedi.multa
    53.     permission message: &cNessun Permesso.
    54.     trigger:  
    55.         if "%{multe::%arg-1%::*}%" does not contain "%arg-1%":
    56.             send "&c&lQuesto giocatore non ha multe, quindi non puoi rimuoverne!"
    57.             stop
    58.         if arg-1 is not set:
    59.             send "&cNon hai inserito il giocatore!"
    60.         else:
    61.             clear {multe::%arg-1%::*}
    62.             send "&c&lHai rimosso una multa da %arg-1%&c&l!"        
Thread Status:
Not open for further replies.

Share This Page