Hey Guy's!
I currently have this for my Tsay
------------------------------ Tsay ------------------------------
function ulx.tsay( calling_ply, message )
ULib.tsayColor( _, false, Color(0,255,0), "(ADMIN) ", calling_ply:IsValid() and calling_ply:Nick() or "Console", ": ", message )
if util.tobool( GetConVarNumber( "ulx_logChat" ) ) then
ulx.logString( string.format( "(tsay from %s) %s", calling_ply:IsValid() and calling_ply:Nick() or "Console", message ) )
end
end
local tsay = ulx.command( CATEGORY_NAME, "ulx tsay", ulx.tsay, "@@", true, true )
tsay:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine }
tsay:defaultAccess( ULib.ACCESS_ADMIN )
tsay:help( "Send a message to everyone in the chat box." )
What I want to do is display their rank
so like (%RANK%) %Playername% : Message
What would I change "(ADMIN)" To?
Thank you very much for the help!