Facebook
From kubek, 7 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 93
  1. command /chat [<text>] [<text>]:
  2.     trigger:
  3.         if player has permission "chat.pc":
  4.             if arg 1 is empty:
  5.                 send "&8## &7Poprawne uzycie: &e/chat <off/on/clear>" to player
  6.             else if arg 1 is "on":
  7.                 if {chat.stan} is true:
  8.                     send "&8## &7Chat jest juz &ewlaczony" to player
  9.                     stop trigger
  10.                 set {chat.stan} to true
  11.                 broadcast "&8## &7Chat zostal wlaczony przez &e%player%"
  12.             else if arg 1 is "off":
  13.                 if {chat.stan} is false:
  14.                     send "&8## &7Chat jest juz &ewylaczony" to player
  15.                     stop trigger
  16.                 set {chat.stan} to false
  17.                 loop 100 times:
  18.                     broadcast " "
  19.                 if "%arg 2%" is "<none>":
  20.                     broadcast "&8## &7Chat zostal wylaczony przez &e%player%"
  21.                 else:
  22.                     broadcast " &c## &8Chat zostal &4wylaczony &7przez &8%player%&7, z powodu &c%arg 2%"
  23.             else if arg 1 is "c":
  24.                 loop 100 times:
  25.                     broadcast " "
  26.                 broadcast "&8## &7Chat zostal wyczyszczony przez &e%player%"
  27.             else:
  28.                 send "&8## &7Poprawne uzycie &e/chat <off/on/c>" to player
  29.             stop trigger
  30.         else:
  31.             send "&8## &7Nie masz permissji do &e(fromhc.chat)"
  32.            
  33. command /cc:
  34.     trigger:
  35.         if player has permission "chat.cc":
  36.             loop 100 times:
  37.                 broadcast " "
  38.             broadcast "&8## &7Chat zostal wyczyszczony przez &e%player%"
  39.         else:
  40.             send "&8## &7Nie masz permissji do &e(fromhc.chat.clear)"
  41.        
  42.  
  43. on chat:
  44.     if {chat.stan} is false:
  45.         if player has permission "chat.vip" or "chat.vip":
  46.             stop trigger
  47.         else:
  48.             cancel event
  49.             send "&8# &7Chat jest aktualnie &ewylaczony"
  50.             stop    
  51.  
  52. on chat:
  53.     if player has permission "chat.5secounds":
  54.     set {_waited} to difference between {spam.%player%.lastused} and now
  55.     if {_waited} is less than 5 seconds:
  56.         message "&e&oOj zwolnij, na chacie mozna pisac co 5 sekund"
  57.         cancel event
  58.         stop
  59.     set {spam.%player%.lastused} to now
  60.  
  61.