ULX

Poll

Where any of these somewhat interesting or "cool"?

Yes, thank you :)
7 (100%)
No, do better next time :(
0 (0%)

Total Members Voted: 7

Author Topic: Player Chat Tags  (Read 64909 times)

0 Members and 2 Guests are viewing this topic.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Player Chat Tags
« on: February 06, 2013, 05:59:14 PM »
GO TO THIS LINK FOR THE NEW VERSION OF THIS ADDON I MADE

http://forums.ulyssesmod.net/index.php/topic,6196.msg29251.html
« Last Edit: April 11, 2013, 07:50:01 PM by chaos13125 »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Nightmare2244

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Player Chat Tags
« Reply #1 on: February 06, 2013, 06:09:02 PM »
Would you happen to have any ULX chat tags that say like Super-Admin and Owner next to their name?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags
« Reply #2 on: February 06, 2013, 07:28:28 PM »
Would you happen to have any ULX chat tags that say like Super-Admin and Owner next to their name?

This is how this script works. When you create a group, you must create a team using XGUI. As long as you have a team created in XGUI and apply it to one of the groups, everything will work fine.

If this didn't answer your question, please ask it in a different way :/
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Nightmare2244

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Player Chat Tags
« Reply #3 on: February 06, 2013, 08:08:19 PM »
Like when someone speaks it looks like this

(Super-Admin) Nightmare: Test

or

(Owner) Nightmare: Owner

etc...

(Trusted) Nightmare: Trusted

Offline Mesmaroth

  • Newbie
  • *
  • Posts: 5
  • Karma: -1
Re: Player Chat Tags
« Reply #4 on: February 06, 2013, 08:12:19 PM »
I think he means like when a Admin is in a RP class can he let others know if he is Super Admin or Admin just just by the chat tags. Anyways thanks for this man. Keep it coming. Do you mind me asking where did you learn Lua and how long have you been?

Offline Nightmare2244

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Player Chat Tags
« Reply #5 on: February 07, 2013, 09:37:33 AM »
Like I said when ever you type in sandbox it shows what admin rank you are for ULX. Any download and tutorial?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags
« Reply #6 on: February 07, 2013, 07:50:05 PM »
Like I said when ever you type in sandbox it shows what admin rank you are for ULX. Any download and tutorial?

Yeah, the download is located here
https://mega.co.nz/#!jJUGxaoR!JlbYtBDtwGxC8xyAUXwA5z8AsMYqyWmOGAc5TTaXb68
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags
« Reply #7 on: February 07, 2013, 07:56:44 PM »
I think he means like when a Admin is in a RP class can he let others know if he is Super Admin or Admin just just by the chat tags. Anyways thanks for this man. Keep it coming. Do you mind me asking where did you learn Lua and how long have you been?

I learned lua from mainly this website http://www.lua.org/ . It's a good place to start, even though Garry's Mod's lua is a bit different, still good to go there.
If you meant other websites besides the lua.org website than there are also these really great (but old wiki's, a bit outdated now but still works amazingly)
http://glua.me/search/ and http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html

The wiki.garrysmod.com wiki sucks really badly, and I suggest if you want to learn lua don't go there. If you need to find hooks or functions I mean you could use that wiki, but I wouldn't really suggest it. Only use it if the function/hook is/are new to garrysmod (if you know they are new), because most likely it won't be on the old wikis' than.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Mesmaroth

  • Newbie
  • *
  • Posts: 5
  • Karma: -1
Re: Player Chat Tags
« Reply #8 on: February 08, 2013, 09:15:50 PM »
Thank you. I will start learning. How long did it take you to learn basic lua and gmod lua?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags
« Reply #9 on: February 08, 2013, 10:23:30 PM »
Thank you. I will start learning. How long did it take you to learn basic lua and gmod lua?

About two months to learn basic lua, and then about 2 weeks to learn garry's mod lua. Seeing as all lua is the same, garry's mod just adds it's own things.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline datgregofag

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: Player Chat Tags
« Reply #10 on: February 11, 2013, 06:34:50 PM »
I have  a ttt server and it just says (Terrorist) =YBW= Greg: or (Spectator) =YBW= Greg. HOw do i make it so it shows rank.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags
« Reply #11 on: February 12, 2013, 01:17:36 AM »
I have  a ttt server and it just says (Terrorist) =YBW= Greg: or (Spectator) =YBW= Greg. HOw do i make it so it shows rank.

omg.. not these people again (no offense). I don't know whats up with TTT, sorry man. There are threads everywhere on this forum saying things like that... all I can say is it's weird but this should work.




here you go, this is what you're looking for
https://mega.co.nz/#!jN8CTKLR!c4AS-T7b5W991j3ynXb3ana7WWdod9NMJhug5OqbG9s

because this script may be a bit confusing, I'll explain this a bit:

Code: [Select]
local Tags =
{
--Group    --Tag     --Color
{"admin", "ADMIN", Color(0, 0, 255, 255) },
{"superadmin", "SUPERADMIN", Color(255, 0, 0, 255) },
{"owner", "OWNER", Color(0, 255, 0, 255) }
}

Here is the only code you will need to touch. as an example, the name "admin" lowercase
Code: [Select]
{"admin", "ADMIN", Color(0, 0, 255, 255) },is the group name. So if you make a group in ulib/xgui/ttt that's what the first name of it has to be.

The second line that say's "ADMIN" uppercase is the name you can change to anything you want, because this will be the thing that will say "[aGFSDGSDSDFGHSDF]"

The last line that say's color, this will be the thing you can use to color the team name
"[aGFSDGSDSDFGHSDF]" ect...

« Last Edit: February 12, 2013, 01:20:27 AM by chaos13125 »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline datgregofag

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: Player Chat Tags
« Reply #12 on: February 12, 2013, 02:31:51 PM »
Thank You so much, you are really a nice person. I love you. *kiss*

Offline datgregofag

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: Player Chat Tags
« Reply #13 on: February 12, 2013, 02:50:21 PM »
Just one question how come it does this [[Owner] ] whats up with the extra [ and ]

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags
« Reply #14 on: February 12, 2013, 04:10:22 PM »
Just one question how come it does this [[Owner] ] whats up with the extra [ and ]

I would sure love some good 'Karma'... *wink*

Anyways I'm assuming you're using Notepad++ but if you're not I hope you can count "lines".

So on line 6, 7, and 8, the second argument which say's [ADMIN], ect, ect you're going to want to remove those brackets and just have the name Admin or w/e you want it to say.

Also I forgot to mention this, if you want more tags, when adding new lines you need to have a "," at the end of the line always, unless it's the last line.
i.e.
Code: [Select]
{
--Group    --Tag     --Color
{"admin", "ADMIN", Color(0, 0, 255, 255) },
{"superadmin", "SUPERADMIN", Color(255, 0, 0, 255) },
{"owner", "OWNER", Color(0, 255, 0, 255) }
}
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.