Lally Posted March 19, 2017 Posted March 19, 2017 Hello everybody! I and I need some help with creating a chat for admins where occur every order executed by each admin. Gen as the default left it to be right in the money. If you could help me with this resource because I do not have an idea. Thanks for all your help!
NeXuS™ Posted March 19, 2017 Posted March 19, 2017 Is English your native language? Can you explain your problem a bit better?
Lally Posted March 19, 2017 Author Posted March 19, 2017 Sorry but English is not my home. I would like to help me create a chat for admins only occur where the commands have been executed by an admin.
NeXuS™ Posted March 19, 2017 Posted March 19, 2017 (edited) Do you mean if an admin types in /jail or /givemoney or etc. then output it to all online admins? Edited March 19, 2017 by NeXuS™
Lally Posted March 19, 2017 Author Posted March 19, 2017 Yes. But they want to be separated from the default. Specifically in money. If you can help me.
Gordon_G Posted March 19, 2017 Posted March 19, 2017 (edited) If you want to do as NeXuS said, you will have to create a new admin panel or, modify the inclued panel. As you're saying, you can : - change the color of admin messages or notifications (to make a difference) - or create a new chatbox for admin logs Edited March 19, 2017 by Gordon_G
Lally Posted March 19, 2017 Author Posted March 19, 2017 That's what I want to do a new chatbox but do not know exactly how.
NeXuS™ Posted March 19, 2017 Posted March 19, 2017 (edited) You'll have to write a outputToAdmins function for just easier overview. function outputToAdmins(source, commandName) for i, k in ipairs(getElementsByType("player")) do -- Get all the online players if (getElementData(k, "adminlevel") or 0) > 0 then -- Check if he is admin (Replace this line with your admin-system's level, we don't know what you are using.) outputChatBox(getPlayerName(source) .. " used the " .. commandName .. " command.", k, 255, 255, 255) -- Outputting that the player used the command to the chat end end end If this is done, you'll have to go through each command you want to be logged, and call the function with the player at arg. 1 and the command's name in arg 2. Edited March 19, 2017 by NeXuS™
Lally Posted March 19, 2017 Author Posted March 19, 2017 I want a different chat at the server and only admins to see him. Gen as the Vedic gm
Gordon_G Posted March 19, 2017 Posted March 19, 2017 As I said, use clients functions, no other way simplier.
NeXuS™ Posted March 19, 2017 Posted March 19, 2017 We won't make a whole resource here for you, we'll help you, if you are stuck somewhere. But you didn't even start your work.
Lally Posted March 19, 2017 Author Posted March 19, 2017 Well give me some functions that can help me
NeXuS™ Posted March 19, 2017 Posted March 19, 2017 addEventHandlerdxDrawText table.insert And I don't think you'll need more than that.
Gordon_G Posted March 19, 2017 Posted March 19, 2017 12 minutes ago, Gordon_G said: Hum... guiCreateLabel() Or a dxText I've already gave you.
SheriFF Posted March 19, 2017 Posted March 19, 2017 (edited) Delete this Edited March 19, 2017 by *BeaT* Ignore this reply,please
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now