NOTE: This is a for fun only, 20 minute thing. I did it to practice lua and laugh a little.
NOTE2: If you are going to comment on how much my code sucks, please tell me how and where I can improve it and I gladly will.
Now, on to the addon.
This addon adds color codes like those in MW2 for your Gmod!
It works both client side and server side.
If you have it on your client, it will change everyone’s name in this way on any server.
If you have it on your server, users will automatically download it and it will work for everyone on the server in this way.
I was using the name
Divran ^1testing ^8testing ^0ha
when I took this screenshot.
NOTE: If I update this sometime, I will NOT update this download. I will ONLY update the SVN.
http://divranspack.googlecode.com/svn/trunk/ divranspack (or a direct link:) http://divranspack.googlecode.com/svn/trunk/ divranspack/MW2 name colors
(SVN Tutorial: http://www.facepunch.com/showthread.php?t=688324 )
Edit: Overv says he thought of this before me. I’d just like to tell you guys I didn’t steal his idea I’ve not been to “What are you working on?” in a long time.
Edit2: Overv has asked me what happens if I write “^aDivran” or anything strange like that (ie: not a number). It used to change it into “aDivran”, but I’ve edited the code to put the ^ back in there. If you now make a mistake, or intend it to be that way, it will leave the ^ untouched.
The SVN has been updated, the Gmod.org download has not.
The available colors are:
^1 = Red ^2 = Green ^3 = Yellow ^4 = Blue ^5 = Cyan ^6 = Pink ^7 = White ^8 or ^9 = Your team's default color ^0 = Black