• Admin message addon to server
    3 replies, posted
Hey, I want a addon to the server so I can like yell so every can hear it like: Propblocking is not allowed I want to do like this in chat: /adminyell <message> Also a message where players can send if you will report a player, the message should arrive to the admins. /report NAME is propblocking, teleport to me please. Hope you understand me!
Ulx and such administration mods already have these functions. If you got a admin system that allows teleportation and such, you most likely have the ability to do a "yell" (appear on middle of screen or in chatbox). Just look through the commands.
Thank you, but I still need the report thing this is my code I make for admin yell: function AdminAdvert(ply, args) if args == "" then return "" end local DoSay = function(text) if text == "" then return end for k,v in pairs(player.GetAll()) do local col = team.GetColor(ply:Team()) TalkToPerson(v, col, LANGUAGE.ADMIN ..ply:Nick(), Color(255,0,0,0), text, ply) end end return args, DoSay end AddChatCommand("/adminadvert", AdminAdvert) How can I make so only admins can see this?
Uh, would it not be best to use ulx or something like that as a base? They got "adminchat" which sends a message to all admins, anyone can do it but only admins can read it.
Sorry, you need to Log In to post a reply to this thread.