Advertisement
NOF

Juz prawoe ..!

NOF
May 11th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /chat [<text>] [<text>] [<text>]:
  2.         permission: sk.chat
  3.         trigger:
  4.                 argument 1 is "off":
  5.                         set {chat.allowed} to false
  6.                         broadcast "<light red>Chat zostal wylaczony przez %player%"
  7.                 argument 1 is "on":
  8.                         set {chat.allowed} to true
  9.                         broadcast "<light green>Chat zostal wlaczony przez %player%"
  10.                 argument 1 is "wyczysc":
  11.                         execute console command "cc %player%"
  12.                 argument 1 is "temp":
  13.                         if argument 2 is not empty:
  14.                                 if argument 3 is not empty:
  15.                                         if {chat.%argument 3%.powod} is not set:
  16.                                                 make player execute command "chattime %argument 2%"
  17.                                                 set {chat.allowed} to false
  18.                                                 broadcast "&cChat zostal wylaczony czasowo na &9%argument 2% sekund &cprzez %player%&c. Powod: &9%argument 3%"
  19.                 argument 1 is "mow":
  20.                         if argument 2 is not empty:
  21.                                 if argument 3 is not empty:
  22.                                         if {chat.%argument 3%.nick} is not set:
  23.                                                 make player execute command "chatmow %argument 2%"
  24.                                                 set {chat.allowed} to false
  25.                                                 set {mow.nick} to argument 3
  26.                                                 make player execute command "pex user {mow.nick} add sk.echat"
  27.                                                 broadcast "&cAdmin %player%&c dal prawo glosu &9%argument 3%&c na&9 %argument 2%"
  28.                 argument 1 is "autor":
  29.                         message "----- &3Chat&6Plugin &f-----"
  30.                         message " &7Autor: &9~NNoF"#zakaz zmieniana tych wiadomoƛci
  31.                         message " &7Wersja Skryptu: &91.0 BETA"
  32.                         message " &7Znajdziesz mnie na: &9Bukkit.pl&8"
  33. on chat:
  34.         if player has permission "sk.echat":
  35.                 stop
  36.         else:
  37.                 if {chat.allowed} is false:
  38.                         cancel event
  39.                         send "<light red>Pisanie wylaczone.!"
  40.                         stop
  41.                 if {chat.allowed} is true:
  42.                         stop
  43.                        
  44. command /chattime <integer>:
  45.         trigger:
  46.                 if player has permissions "sk.chat":
  47.                         set {time} to arg 1
  48.                         set {limit} to 10000000000
  49.                         set {counter} to 0
  50.                         set {limit2} to 0
  51. command /chatmow <integer>:
  52.         trigger:
  53.                 if player has permissions "sk.chat":
  54.                         set {time2} to arg 1
  55.                         set {limit2} to 10000000000
  56.                         set {counter2} to 0
  57.                         set {limit3} to 0
  58.                                                
  59. Every 1 seconds:
  60.         if {chat.allowed} is false:
  61.                 if {time2} is not set:
  62.                         stop
  63.                 if {limit2} is not set:
  64.                         stop
  65.                 add 1 to {counter2}
  66.                 if {counter2} is {time2}:
  67.                         make player execute command "pex user {mow.nick} remove sk.echat"
  68.                         broadcast "&cTwoj czas sie skonczyl"
  69.                         set {counter2} to 0
  70.                         add 1 to {limit3}
  71.                 if {limit2} is {limit3}:
  72.                         delete {time2}
  73.                         delete {counter2}
  74.                         delete {limit2}
  75.                         delete {limit3}
  76. Every 1 seconds:
  77.         if {chat.allowed} is false:
  78.                 if {time} is not set:
  79.                         stop
  80.                 if {limit} is not set:
  81.                         stop
  82.                 add 1 to {counter}
  83.                 if {counter} is {time}:
  84.                         set {chat.allowed} to true
  85.                         broadcast "<light green>Znowu mozesz pisac"
  86.                         set {counter} to 0
  87.                         add 1 to {limit2}
  88.                 if {limit} is {limit2}:
  89.                         delete {time}
  90.                         delete {counter}
  91.                         delete {limit}
  92.                         delete {limit2}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement