Advertisement
NOF

Kod dla DZIKOYSK

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