Author Topic: Addon that shows player name when you put their crosshair over them  (Read 781 times)

Would it be possible for an addon that shows the player name if you put the crosshair over them? Im asking this because I recently tried to host a Super Murder Mystery server, but everyone treated it like a glorified deathmatch. SMM gives everyone "real names" instead of usernames, so its difficult to kick/ban people.

Example: Blockhead1452 joins a SMM server. He starts deathmatching, but everyone sees his name as "John Doe". With this addon, I put the crosshair over him(even if Im dead and spectating), get his name in bottom print, and prepare the banhammer.

Before anyone asks, I know how to edit what addons a gamemode picks.

wouldn't that defeat the purpose of having those nicknames

wouldn't that defeat the purpose of having those nicknames
I think he means Admin-only or after a /showNames Admin-only command

Yes this is possible.
What I would do, is look at the code for the "OnBotActivated" event so you can see how 'finding the player you are looking at' works. Then get the %player.client.name variable from it and display that on a bottom print.

wouldn't that defeat the purpose of having those nicknames
The purpose of realism(Who names their kid "YoloSwag569") or to be anonymous when RDMing?

SMM has a /whois SMM name function

SMM has a /whois SMM name function
Oh. Does Smm have a /help command or anything? What if I'm already dead?
« Last Edit: December 21, 2013, 09:44:45 PM by tber123 »

Oh. Does Smm have a /help command or anything? What if I'm already dead?
fyi  you can type things when you're dead

I just realized SMM shows you the "RP name" when you spectate, so no problem. Whoops.

I have a gaze mod that does this, but it ruins all center and bottom prints, so it's not worth it.  If anyone would like to try to remove the overwriting feature, that would be great.

Example: Blockhead1452 joins a SMM server. He starts deathmatching, but everyone sees his name as "John Doe". With this addon, I put the crosshair over him(even if Im dead and spectating), get his name in bottom print, and prepare the banhammer.

/whois John Doe