Ulysses

Ulysses Stuff => Suggestions => Topic started by: Marmaduke on August 04, 2011, 09:09:55 AM

Title: Rank Tags
Post by: Marmaduke on August 04, 2011, 09:09:55 AM
Is it possible to make it so when players of different ranks use chat or voice communication it will show the players rank before their name in a different colour and brackets? Because at the moment it is possible to put (superadmin) before your name but everyone can do it, and you will have to change your name when you goto a server you dont administrate. Evolve has this feature but ULX is better, and i want to stick with it?
Title: Re: Rank Tags
Post by: Aaron113 on August 04, 2011, 09:50:32 AM
http://forums.ulyssesmod.net/index.php/topic,4799.0.html (http://forums.ulyssesmod.net/index.php/topic,4799.0.html)
Title: Re: Rank Tags
Post by: Marmaduke on August 04, 2011, 10:08:58 AM
i Mean how your name appears in chat
Title: Re: Rank Tags
Post by: Aaron113 on August 04, 2011, 10:42:53 AM
Oops!  I swear I seen on here, but I guess it was on garrysmod.org.   :-[
Title: Re: Rank Tags
Post by: Marmaduke on August 04, 2011, 11:04:51 AM
So does anyone know a way of doing it or a plugin of some sort?
Title: Re: Rank Tags
Post by: Aaron113 on August 04, 2011, 11:10:35 AM
This is what I was refering to:  http://www.garrysmod.org/downloads/?a=view&id=78835 (http://www.garrysmod.org/downloads/?a=view&id=78835)

There is no plugin specifically made for ULX I believe, but maybe an idea for someone else to make it.
Title: Re: Rank Tags
Post by: Megiddo on August 04, 2011, 11:50:54 AM
I believe UTeam colors the name in chat to the team color (so you can identify superadmins/admins), but it doesn't insert a tag before the name.
Title: Re: Rank Tags
Post by: Willdy on September 10, 2011, 03:08:41 AM
Sorry for the gravedig.

http://forums.ulyssesmod.net/index.php/topic,5391.0.html

Code: [Select]
local function lOnPlayerChat( ply, strText, bTeamOnly, bPlayerIsDead )
 
    local tab = {}

    local lTeam = 0
    if( IsValid( ply ) ) then
        lTeam = ply:Team()
    end

    table.insert( tab, Color( team.GetColor( lTeam ) ) )
    table.insert( tab, "[" .. team.GetName( lTeam ) .. "] " )
 
    if ( bPlayerIsDead ) then
        table.insert( tab, Color( 255, 30, 40 ) )
        table.insert( tab, "*DEAD* " )
    end