Guest User

mkWarn 1.1

a guest
Dec 12th, 2014
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.38 KB | None | 0 0
  1. #=================# mkWarn #=================#
  2. # - Wersja: 1.1
  3. # - Wymagane pluginy: Skript
  4. # - Autor: GoodGameBro
  5. #============================================#
  6.  
  7. options:
  8.         #Prefix przy wiadomosciach.
  9.     tag: &8[&c&lmkWarn&8]
  10.     #Po ilu warnach ma banować gracza. (domyślnie 8)
  11.     maxwarn: 8
  12.         #Powód bana po osiągnięciu limitu.
  13.     powod: &cZostales zbanowany poniewaz osiagnoles limit warnow!
  14.    
  15. variables:
  16.     {warn.%player%} = 0
  17.    
  18. command /warn [<player>] [<text>]:
  19.     permission: mkWarn.*
  20.     permission message: &cNie masz uprawnien do tej komendy!
  21.     aliases: upomnienie
  22.     trigger:
  23.         if argument 1 is not set:
  24.             send "&7*{@tag}&7* &cPoprawne uzycie to /warn <nick> <powod>!"
  25.         if argument 1 is set:
  26.             if argument 2 is not set:
  27.                 send "&7*{@tag}&7* &cPodaj powod warna!"
  28.         if argument 1 is set:
  29.             if argument 2 is set:
  30.                 broadcast "&7*{@tag}&7* &c%player% &7nadal warna graczowi &c%arg 1% &7za (%arg 2%)"
  31.                 add 1 to {warn.%arg 1%}
  32.                
  33. command /clearwarn [<player>]:
  34.     permission:  mkWarn.*
  35.     permission message: &cNie masz uprawnien do tej komendy!
  36.     aliases: cwarn
  37.     trigger:
  38.         if argument 1 is not set:
  39.             send "&7*{@tag}&7* &cPoprawne uzycie - /clearwarn <nick>"
  40.         else:
  41.             set {warn.%arg 1%} to 0
  42.             send "&7*{@tag}&7* &cWyczysciles warny graczowi %arg 1%!"
  43.            
  44. command /zglos [<text>] [<text>]:
  45.     permission: mkWarn.gracz
  46.     trigger:
  47.         if arg 1 is not set:
  48.             send "&7*{@tag}&7* &cWpisz /zglos <nick> <powod>!"
  49.         if arg 1 is set:
  50.             if arg 2 is not set:
  51.                 send "&7*{@tag}&7* &cPodaj powod!"
  52.             else:
  53.                 if arg 2 is set:
  54.                     log "Gracz %player% slozyl skarge na %arg 1%  Powod: %arg 2%" to "Skargi"
  55.                     send "&7*{@tag}&7* &cZglosiles gracza o nicku %arg 1%!"
  56.            
  57. command /informacje [<player>]:
  58.     trigger:
  59.         if player has permission "mkWarn.*":
  60.             if argument 1 is not set:
  61.                 send "&7*{@tag}&7* &cPoprawne uzycie - /informacje <nick>"
  62.             else:
  63.                 send "&c&l  Statystyki %arg 1%"
  64.                 send "&e IP - &7%ip of argument 1%"
  65.                 send "&e Warny - &7%{warn.%name of arg 1%}%"
  66.         else:
  67.             send "&4Nie masz uprawnien do tego"
  68.            
  69. every 10 ticks:
  70.         loop all players:
  71.                 if {warn.%loop-player%} is larger than {@maxwarn}:
  72.                         log "%loop-player% | Warny: %{warn.%loop-player%}%" to "warny"
  73.                         execute console command "/ban %loop-player% {@powod}"
  74.                         set {warn.%loop-player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment