Author Topic: Temporary Name Change? - Need Command Help  (Read 9924 times)

0 Members and 2 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Temporary Name Change? - Need Command Help
« Reply #15 on: April 08, 2015, 07:52:16 PM »
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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Temporary Name Change? - Need Command Help
« Reply #16 on: April 08, 2015, 09:54:01 PM »
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

Offline Zoeo

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
Re: Temporary Name Change? - Need Command Help
« Reply #17 on: April 09, 2015, 11:37:01 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.
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

Offline Zoeo

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
Re: Temporary Name Change? - Need Command Help
« Reply #18 on: April 09, 2015, 07:49:30 PM »
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: [Select]
function PlayerDisconnect( ply )
self:SetNWString("ufakename_name", nil)
end
« Last Edit: April 09, 2015, 07:51:40 PM by Zoeo »

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Temporary Name Change? - Need Command Help
« Reply #19 on: April 09, 2015, 07:56:33 PM »
Hhmm, I never had that issue.  It doesn't seem like something that should be a problem, but I will check it out.