Solved Player name history

Discussion in 'Plugin Requests' started by maksiyshuk, Jul 12, 2015.

  1. Who can write a plugin?, so that when you enter a specific command, and the name of the player showing the sign under any nicknames on the server player.
     
  2. Not sure I understood all of this... You want a command that shows you all Signs a player has placed on the server? That might be possible with the new UI api but it's so raw and buggy I don't think many plugin devs wanna waste time on this yet. Otherwise it would be pretty easy to list the size and location of all signs placed by a player, but that would hardly be useful if it's for moderation purposes for instance, since you would not see the actual image.

    One could on the other hand make a mod that outputs the filenames to the console and then you could use that list in another offline program that would download the images through FTP and show them.. but that's quite an undertaking...
     
  3. EN:No, you misunderstood.
    It is necessary that each time a connection to the server in a data file or config file was recorded in the player's nickname. Let the player went out and decided to change the nick again zasholna server - in data file recorded his new nickname, and so on. Now the game someone has registered the command and the nickname and he flashed all nicknames that igrkov by which he came to the server!

    RU:Нет вы не так поняли.
    Нужно чтобы при каждом коннекте к сервере в дата файл или в конфиг файл записывался ник игрока. Допустим игрок вышел и решил сменить ник и опять зашолна сервер - в дата файл записался его новый ник и так далее. Теперь в игре кто-то прописал команду и ник и ему высветились все ники этого игрка под которыми он заходил на сервер!
     
  4. Wulf

    Wulf Community Admin

    It sounds like the OP wants a username history plugin.
     
  5. I see, I understand now. I don't know of any such plugin but it would be easy to do.
     
  6. For what? Every player have his own steam id.
     
  7. EN:
    Compare Steam uncomfortable! And incentives are tied to all the nicknames by which the player enters. And you can click through to see under what nickname he played.
    RU:
    Сравнивать стим неудобно! А так к стиму будут привязываться все ники под которыми игрок заходил. И можно будет через команду посмотреть под каким ником он играл.
     
  8. If I understand you correctly you are want plugin that shows and stores all nicknames of players. That's right?
     
  9. yes...
     
  10. If someone creates a plugin like this, it would be nice if it could broadcast previous names (if any) when a user connects.

    1. I connect to the server for the first time:
    This is broadcasted: Mathias has joined the server!

    2. I change name to "Rust"

    3. I join the server again and this is broadcasted:
    Rusthas joined the server! Previous names: Mathias
     
  11. I'll try.
     
  12. EN:
    It will be uncomfortable. We need to show all the names.
    Since the player can change a couple of times during the night and one nick will not see him last nick!
    RU:
    Это будет неудобно. Нужно чтобы показывало все имена.
    Так как игрок может ночью пару раз сменить ник и некто не будет видеть его прошлый ники!
     
  13. Okay. I don't really like the
    thing but I did that.
    /lastname <name/steamID> - this will show you all the names of player
    Config:
    Code:
    ReplaceWithFirstName - "Mathias thing"
    CommandAuthLevel - the minimum required authentification level for use "/lastname" command
     

    Attached Files:

  14. Code:
    [Oxide] 7:28 PM [Error] Failed to call hook 'ChatCmd' on plugin 'LastName' (FormatException: Input string was not in a correct format.)
    [Oxide] 7:28 PM [Debug]   at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0
      at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RustPlugin.PrintToChat (.BasePlayer player, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LastName.ChatCmd (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
     
  15. Oh yeah. I'm stupid.
    Now just delete config file and replace old plugin with that.
    [DOUBLEPOST=1436892320][/DOUBLEPOST]Oh. And if you don't restart your server then after replacing the plugin type in console:
    oxide.unload LastName
    oxide.load LastName
     

    Attached Files:

  16. EN:
    Everything works! But the team only works with the nickname with which the player currently in the game, not with the old!
    RU:
    Всё работает! Но команда работает только с тем ником с которым игрок сейчас в игре, а не с старыми!
    [DOUBLEPOST=1436893527][/DOUBLEPOST]If there is CommandAuthLevel = 0, then I can not as an administrator to Use the command / lastname
    [DOUBLEPOST=1436893566][/DOUBLEPOST]Players use, and administrators can not!
    [DOUBLEPOST=1436894083][/DOUBLEPOST]Maybe you need instead?
    player.net.connection.authLevel <=
    write
    player.net.connection.authLevel >=
    127 line
     
    Last edited by a moderator: Jul 14, 2015
  17. Yeah. I think so.
     
  18. If the name of only numbers, the player does not see. / lastname 111 - No player found with that name / steamID
    [DOUBLEPOST=1436894341][/DOUBLEPOST]In the data file has the nickname 111
    [DOUBLEPOST=1436894899][/DOUBLEPOST]Well, it's not a problem - most likely conflict with steamID. :)
    But the team only works with the nickname with which the player currently in the game, not with the old! :(
    [DOUBLEPOST=1436895342][/DOUBLEPOST]And on this thank you!
     
  19. Oh man. It's my pleasure.
    There. Check it. Should work.
     

    Attached Files:

  20. Everything works great!
    [DOUBLEPOST=1436896228][/DOUBLEPOST]Thank you very much