Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Cambiar "Thetroz" por el nombre de cada persona. Para agregar más puedes separarlo con comas. Mira el "ejemplo"
- admins = {Thetroz = true}
- centinelas = {Thetroz = true}
- mapcrews = {Thetroz = true}
- moderadores = {Thetroz = true}
- ejemplo = {Persona1 = true, Persona2 = true, Persona3 = true}
- --Así sucesivamente^
- --TextArea
- ui.addTextArea(0, "", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
- --Comandos
- function eventChatCommand (player, cmd)
- if admins[player] then
- if cmd:sub(0,1) == "a" then
- ui.addTextArea(0, "<b><R>[~Administrador "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
- end
- end
- if moderadores[player] then
- if cmd:sub(0,1) == "m" then
- ui.addTextArea(0, "<b><J>[~Moderador "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
- end
- end
- if centinelas[player] then
- if cmd:sub(0,1) == "c" then
- ui.addTextArea(0, "<b><VP>[~Centinela "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
- end
- end
- if mapcrews[player] then
- if cmd:sub(0,1) == "v" then
- ui.addTextArea(0, "<b><BV>[~Mapcrew "..player.."] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
- end
- end
- end
- system.disableChatCommandDisplay("a", true)
- system.disableChatCommandDisplay("m", true)
- system.disableChatCommandDisplay("v", true)
- system.disableChatCommandDisplay("c", true)
Advertisement
Add Comment
Please, Sign In to add comment