General > Developers Corner

ULX Functions

(1/1)

GGG KILLER:
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

JamminR:
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.

GGG KILLER:
But now i need to know how to change the color from green to another one(red or blue)

iSnipeu:

--- Quote from: GGG KILLER on September 21, 2013, 04:54:55 PM ---But now i need to know how to change the color from green to another one(red or blue)

--- End quote ---
Just use tsayColor

Navigation

[0] Message Index

Go to full version