gms_self_name

Usage: gms_self_name ( )

Description

Returns the player's name. To obtain other player's names, you should use server_other_get_string(player_id, "name")

Replies (19)

Last message on 20 Mar 2020

Bluecore on 29 Jul 2016, 22:16:38
server_other_get_string(player_id, "name") is no longer a function. Someone help me out by telling me how I can display other people's names. This is how I am displaying the user's name.

#DRAW EVENT
var PlayerName
PlayerName = gms_self_name();
draw_set_halign(fa_center);
draw_set_valign(fa_middle);
draw_set_font(EightBitOperatorJVE);
draw_text_ext_colour(objPlayer.x+9,objPlayer.y-10,PlayerName,10,200,c_white,c_white,c_white,c_white,1);

However, I'm not sure how to make it so other people's names float on top of their players.
BabyGolden12 on 20 Mar 2020, 06:44:26
say i wanted to make a text say a player name how would this work
NSXdev on 28 Apr 2019, 14:02:06
Hey, so can i use this like this gms_self_name(playername,playername1)?