3d textdraw help
#4

pawn Код:
public OnGameModeInit()
{
    ShowNameTags(0);
}
pawn Код:
new Text3D:NameLabel[MAX_PLAYERS];
OnPlayerConnect:

pawn Код:
NameLabel[playerid] = CreateDynamic3DTextLabel("_", 0xFFFFFFFF, 0.0, 0.0, 0.1, 20, .attachedplayer = playerid, .testlos = 1);
OnPlayerDisconnect:

pawn Код:
if(IsValidDynamic3DTextLabel(NameLabel[playerid])) DestroyDynamic3DTextLabel(NameLabel[playerid]);
OnPlayerSpawn:

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);
*Consider using Attach3DTextLabelToPlayer instead of UpdateDynamic3DTextLabelText, just edit it as you wish.
Reply


Messages In This Thread
3d textdraw help - by lemonnade - 25.10.2018, 10:37
Re: 3d textdraw help - by Shaun8 - 25.10.2018, 10:50
Re: 3d textdraw help - by lemonnade - 25.10.2018, 11:04
Re: 3d textdraw help - by KinderClans - 25.10.2018, 11:20
Re: 3d textdraw help - by lemonnade - 25.10.2018, 11:25

Forum Jump:


Users browsing this thread: 1 Guest(s)