Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Depois iremos mudar o "print" para "tfm.exec.chatMessage" Quando liberarem!
- admin = { "Sagazgamer", "Tectoon", "Theapps" } -- Sagazgamer: Admin -- Tectoon: Moderador -- Theapps: Mapcrew
- system.disableChatCommandDisplay('help',true)
- system.disableChatCommandDisplay('adm',true) -- Comando de Admins
- system.disableChatCommandDisplay('mod',true) -- Comando de Moderador
- system.disableChatCommandDisplay('map',true) -- Comando de Mapcrew
- function eventChatCommand(name, command)
- if command == 'help' then
- print("<ROSE>Digite !mod<n> - Para falar como Moderador! <ROSE>Digite !adm<n> - Para falar como Admin! <ROSE>Digite !map<n> - Para falar como Mapcrew!",name)
- end
- for playerName, playerKey in pairs(admin) do
- if playerKey == name then
- message = string.find(command,"adm ",1)
- if message == 1 then
- print("<FONT COLOR=\"#DC85FF\">♠ [" .. name.. "]<B>" .. string.sub(command,message + 3,string.len(command)) .. "</B></FONT>")
- end
- if playerKey == name then
- message = string.find(command,"mod ",1)
- if message == 1 then
- print("<FONT COLOR=\"#0D82FF\">♠ [" .. name.. "]<B>" .. string.sub(command,message + 3,string.len(command)) .. "</B></FONT>")
- end
- if playerKey == name then
- message = string.find(command,"map ",1)
- if message == 1 then
- print("<FONT COLOR=\"#FFAD00\">♠ [" .. name.. "]<B>" .. string.sub(command,message + 3,string.len(command)) .. "</B></FONT>")
- end
- end
- end
- function string.split(message)
- i = 1
- command = {}
- for split in string.gmatch(message, "[^%s]+") do
- command[i] = split
- i = i + 1
- end
- return command
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement