Oasis uses mouseover tooltips to show the name of something. So you can just put your mouse over a player and it displays their name in a tooltip. That's one way of doing it. It's simple to do "hidden" names, you just disable a flag on the player that checks whether that object/person has a name.
So if the person is hiding in a barrel, and you mouseover it, you see nothing.
