The functions run at the server side, but if you want to show the names at client side, too - you have change some things.
Lookup proc_local in the manual, to understand how to call name_ent1 and name_ent2.
This is important, because you also whish to use the clients camera position to find the right coordinates for the text names.
But there still is some extra work to do: You need to send the name to each client, otherwise there is no text to copy into the TEXT string.
Maybe you didn't notice this till now, but both players use the same name, because there can only be one player_name per system.
-- slacer