Ulysses
General => Developers Corner => Topic started by: GGG KILLER on September 18, 2013, 02:17:00 PM
-
So guys, I'm making a taser and some people asked for me to make a way of just admins receive a message.
So I'm here asking:
1. What is the function to send a message to all admins
2. What is the function to add a message to the logs
My taser addon is here
http://steamcommunity.com/sharedfiles/filedetails/?id=173953834 (http://steamcommunity.com/sharedfiles/filedetails/?id=173953834)
-
As ulx wasn't itself written to be a library, we've never actually posted a document of commands within it.
We have however, published ULib, which ULX relies on.
http://ulyssesmod.net/docs/
If you're wanting a 'chat like' message sent to admins, look up ulx.asay in our ulx files.
If you're wanting a 'log' like echo that only admins can see and is written to server logs, check out FancyLogAdmin (I think). Probably in logs.lua of ulx.
Our ULX code is commented reasonably well, and written in such a way that isn't obfuscated.
Variables are easy to understand, functions are too, etc.
-
But now i need to know how to change the color from green to another one(red or blue)
-
But now i need to know how to change the color from green to another one(red or blue)
Just use tsayColor (http://ulyssesmod.net/docs/files/lua/ulib/shared/messages-lua.html#tsayColor)