Thetroz

Mensaje de Mapcrew, Admin, Moderador y Centinela.

Jan 31st, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.45 KB | None | 0 0
  1. --Cambiar "Thetroz" por el nombre de cada persona. Para agregar más puedes separarlo con comas. Mira el "ejemplo"
  2.  
  3. admins = {Thetroz = true}
  4. centinelas = {Thetroz = true}
  5. mapcrews = {Thetroz = true}
  6. moderadores = {Thetroz = true}
  7. ejemplo = {Persona1 = true, Persona2 = true, Persona3 = true}
  8. --Así sucesivamente^
  9.  
  10. --TextArea
  11.  
  12. ui.addTextArea(0, "", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  13.  
  14. --Comandos
  15.  
  16. function eventChatCommand (player, cmd)
  17.  if admins[player] then
  18.                 if cmd:sub(0,1) == "a" then
  19.                 ui.addTextArea(0, "<b><R>[~Administrador "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  20.         end
  21.     end
  22.  if moderadores[player] then
  23.                 if cmd:sub(0,1) == "m" then
  24.                 ui.addTextArea(0, "<b><J>[~Moderador "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  25.         end
  26.     end
  27.  if centinelas[player] then
  28.                 if cmd:sub(0,1) == "c" then
  29.                 ui.addTextArea(0, "<b><VP>[~Centinela "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  30.         end
  31.     end
  32.  if mapcrews[player] then
  33.                 if cmd:sub(0,1) == "v" then
  34.                 ui.addTextArea(0, "<b><BV>[~Mapcrew "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  35.         end
  36.     end
  37. end
  38.  
  39. system.disableChatCommandDisplay("a", true)
  40. system.disableChatCommandDisplay("m", true)
  41. system.disableChatCommandDisplay("v", true)
  42. system.disableChatCommandDisplay("c", true)
Advertisement
Add Comment
Please, Sign In to add comment