25.10.2018, 11:20
pawn Код:
public OnGameModeInit()
{
ShowNameTags(0);
}
pawn Код:
new Text3D:NameLabel[MAX_PLAYERS];
pawn Код:
NameLabel[playerid] = CreateDynamic3DTextLabel("_", 0xFFFFFFFF, 0.0, 0.0, 0.1, 20, .attachedplayer = playerid, .testlos = 1);
pawn Код:
if(IsValidDynamic3DTextLabel(NameLabel[playerid])) DestroyDynamic3DTextLabel(NameLabel[playerid]);
pawn Код:
new info[70], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(info, sizeof(info), "%s (%d)", pName, playerid);
UpdateDynamic3DTextLabelText(NameLabel[playerid], 0xFFFFFFFF, info);