How do I add player name to statistics logs?

Page:1  

  • Forsaken

    I'm trying to add player names to the statistics logs in SFW. I really need name, and the time they joined and/or change name would be nice as well. Right now this is all it outputs: [2] = { [1] = "unknown"; [2] = "xxx.xxx.xxx.xxx"; [3] = "player idxxxx"; Thanks in advance for any help :)

    ❤️ 0
  • golden_elite13

    What do you really'want to do? I think there is already a stats system in safewriting, maybe you can just modify it to work with player name instead of his profile.. but the problem is name can be changed, it's not trusted like profile

    ❤️ 0
  • Zi;

    Well, thing is, if you add name, SSM will by default ban everyone with same name incoming, which is stupid, so SSM does name ban only if name is for sure not Nomad => when contains $ (colors), but you can modify SafeWritingMain.lua and change function SanitizeName(player) name=player:GetName(); sannam="Player"..player.profile; if(string.find(name,"%$"))then sannam=name; end return sannam; end into just function SanitizeName(player) return player:GetName() end and that will do the thing, and be sure to disable Name bans because of Nomads

    ❤️ 0
  • Forsaken

    I don't really want to do a name ban, I just want the name that they were banned using in the statistics. It makes it easier to track them down in the server log that way and find out exactly why they were banned. If there is a way to add the reason to the ban log that would be great as well. I decided to make all detections permabans for now because of the influx of new hackers. Maybe Ill change it back to a kick later, Ill just have to see how it goes for a couple weeks.

    ❤️ 0
  • Skylimit

    That's how twisted it is. Well known hacker, who was hacking on all !HS servers last year, now talks about finding best ways to deal with hackers on his own server. This is hilarious mate. More than funny. Keep up this insanity. You're the boss. Made my day bro. Truly made my day. Peace.

    ❤️ 0
  • Forsaken

    whatever sky, go fuck yourself

    ❤️ 0
Page:1