Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adm = {Sagazgamer= true}
- namecolor = false
- function eventChatCommand(n,c)
- local args={}
- for argument in c:gmatch("[^%s]+") do
- table.insert(args,argument)
- end
- if args[1]=="cor" and adm[n] then
- if args[2]=="*" then
- if args[3]~="rand" then
- for i in pairs (tfm.get.room.playerList) do
- tfm.exec.setNameColor(i,args[3])
- end
- else
- if cor==true then
- cor=false
- elseif cor==false then
- cor=true
- end
- end
- elseif args[2]~="*" then
- if args[3] then
- if args[3]~="rand" then
- tfm.exec.setNameColor(args[2],args[3])
- else
- tfm.exec.setNameColor(args[2],math.random(0xFFFFFF))
- end
- else
- tfm.exec.setNameColor(args[2],math.random(0xFFFFFF))
- end
- end
- end
- end
- function eventLoop()
- if namecolor==true then
- for i in pairs (tfm.get.room.playerList) do
- tfm.exec.setNameColor(i,math.random(0xFFFFFF))
- end
- end
- end
- for i,command in ipairs({"cor"}) do
- system.disableChatCommandDisplay(command)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement