You could do that, and to enable chat with the names you could save all player names in start with variables. Then show the variable when a player writes.
Example: Player one is named: ""
You save "" in a variable for player one and then change his name to "" (blank)
Everytime player one writes a message, display the name of player one's variable too.
I think this will work, as ive seen multiple maps using such systems.