kukubaczek

JoinMessage++

Apr 28th, 2014
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. options:
  2.     czas: 120 #(w sekundach)
  3.  
  4. on join:
  5.     set join message to ""
  6.     add player to {join.players::*}
  7.     remove player from {quit.players::*}
  8.     stop
  9.  
  10. on quit:
  11.     set quit message to ""
  12.     add player to {quit.players::*}
  13.     remove player from {join.players::*}
  14.     stop
  15.  
  16. every {@czas} seconds:
  17.     if {join.players::*} is not empty:
  18.         set {_x} to "%{join.players::*}%"
  19.         replace all " and " with ", " in {_x}
  20.         send "&f+ &8[&f %number of {join.players::*}% &8]&7 &7%{_x}%" to all players
  21.         wait a tick
  22.         clear {join.players::*}
  23.         stop
  24.  
  25.     if {quit.players::*} is not empty:
  26.         set {_x} to "%{quit.players::*}%"
  27.         replace all " and " with ", " in {_x}
  28.         send "&f- &8[&f %number of {quit.players::*}% &8] &7%{_x}%" to all players
  29.         wait a tick
  30.         clear {quit.players::*}
  31.         stop
Advertisement
Add Comment
Please, Sign In to add comment