ULX

Author Topic: Rank Tags  (Read 6440 times)

0 Members and 1 Guest are viewing this topic.

Offline Marmaduke

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Rank Tags
« 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?

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Rank Tags
« Reply #1 on: August 04, 2011, 09:50:32 AM »

Offline Marmaduke

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Rank Tags
« Reply #2 on: August 04, 2011, 10:08:58 AM »
i Mean how your name appears in chat

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Rank Tags
« Reply #3 on: August 04, 2011, 10:42:53 AM »
Oops!  I swear I seen on here, but I guess it was on garrysmod.org.   :-[

Offline Marmaduke

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Rank Tags
« Reply #4 on: August 04, 2011, 11:04:51 AM »
So does anyone know a way of doing it or a plugin of some sort?

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Rank Tags
« Reply #5 on: August 04, 2011, 11:10:35 AM »
This is what I was refering to:  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.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Rank Tags
« Reply #6 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.
Experiencing God's grace one day at a time.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Rank Tags
« Reply #7 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