General > Developers Corner
Temporary Name Change? - Need Command Help
JamminR:
Bah, let the module user figure out what they want to do with it.
Keep it simple.
If they want to make a fake group to hide in, let them.
Maybe add a fake team change or something to _really_ throw off some gamemodes.
Superadmin only command sounds like to me, else games break.
Aaron113:
I started, unsure if there is a better way to change the team thing. I'll have to look into it more. I also am not sure why the default chatbox isn't using the new name. I might have to overwrite something, which wouldn't be nice.
Feel free to check it out/give feedback so far: https://github.com/Aaron113/ufakename
Zoeo:
--- Quote from: Aaron113 on April 08, 2015, 11:32:17 AM ---If I were you, I would let the user set their fake name or have the option to at least. Trust me people will pick up on the status command fast enough, if you have a limited number of fake names, they will catch on even faster.
--- End quote ---
Done, it will now change the players name on the scoreboard and the persons target name(In the ulx and game in-general) to anything the person types.
Thanks for the help Aaron
Zoeo:
There is a bit of an annoying bug where it will kick the person for changing their name during round in TTT, but that is not a major issue.
One other thing I discovered is that if you don't change your name back before rejoining the server your console/rcon will be spammed with errors. The way I found to fix that is make an autorun folder, put a server .lua in it, and put:
--- Code: ---function PlayerDisconnect( ply )
self:SetNWString("ufakename_name", nil)
end
--- End code ---
Aaron113:
Hhmm, I never had that issue. It doesn't seem like something that should be a problem, but I will check it out.
Navigation
[0] Message Index
[*] Previous page
Go to full version