Oui, but not tested
Code:
function nameEntities(name)
{
while(1)
{
vec_set(temp,my.x);
temp.z += 480; // play with this man
trace_mode = ignore_me+ignore_models+ignore_passents;
if(trace(my.x, camera.x)==0)
{
vec_to_screen(temp, camera);
draw_text(my.string1,temp.x,temp.y,vector(255,255,255));
}
wait(1);
}
}
// in player action
my.string1 = "Player1";
nameEntities(my.string1);