• Server custom name and colors
    12 replies, posted
This small script allows people to have custom names and name colors on your server, other than their steam name, such as the DarkRP RPName command. It also includes some colors and both save on disconnect, so when the player comes back, he will still have the same name. Put it on the lua/autorun/ to install. [url=http://www.garrysmod.org/downloads/?a=view&id=85750][img]http://www.garrysmod.org/img/?t=dll&id=85750[/img][/url] Please leave some feedback so I can improve this server addon.
nice script man :D sory my english im danish
Nice
Good idea! This is really going to help on our server.
Thanks for the positive feedback, if you have any suggestions to the script, feel free to post :)
Released update to fix name not changing...
I can see minges doing stuff with this... example: using the command in a E2 CONCMD to execute to change their name every milli second or such, or changing to another name on the server and pretending to be them etc
Why would you use E2 when Lua was implemented in the game for a reason? Also, this will break [b]all[/b] clientside chat hooks.
[QUOTE=|FlapJack|;18941683]Why would you use E2 when Lua was implemented in the game for a reason? Also, this will break [b]all[/b] clientside chat hooks.[/QUOTE] Supposing that most people use chat hooks on their client? I still doubt it will, can you justify why would it? [QUOTE=zelda dude;18941610]I can see minges doing stuff with this... example: using the command in a E2 CONCMD to execute to change their name every milli second or such, or changing to another name on the server and pretending to be them etc[/QUOTE] That can easily be fixed by allowing name change every X seconds, and by seeing if anyone in the database as that name. I'm going to look those up tomorrow.
[QUOTE=emperus;18949475]I still doubt it will, can you justify why would it?[/QUOTE] Because you're returning true, which keeps the hook from continuing to run.
[QUOTE=Overv;18959117]Because you're returning true, which keeps the hook from continuing to run.[/QUOTE] Well, if i returned false it would allow the normal chat to appear... Maybe I should return the string I want?
I've not looked at the code, but, unless you [B]mean[/B] to break all other chat hooks (basically, any mod that monitors chat (ULX, Assmod, DarkRP, MooCow, ...), you simply return.
[QUOTE=JamminR;18978098]I've not looked at the code, but, unless you [B]mean[/B] to break all other chat hooks (basically, any mod that monitors chat (ULX, Assmod, DarkRP, MooCow, ...), you simply return.[/QUOTE] It's only going to break clientside chat hooks - OnPlayerChat. PlayerSay will work fine.
Sorry, you need to Log In to post a reply to this thread.