how to ? .. what do you mean ?
#3

[FONT="Verdana"]
Quote:
Originally Posted by MEW273
Посмотреть сообщение
Hi no1508,

You can use this function Attached3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ) to attached a player name and ID above their head as a text label.

You will want to disable the default name tags under OnGameModeInit:
pawn Код:
public OnGameModeInit()
{
[FONT="Verdana"]    // This will fully disable all player nametags
    // (including health and armour bars)
    ShowNameTags(0);[/FONT]
}
Then under OnPlayerConnect you will place your custom text labels:
pawn Код:
public OnPlayerConnect(playerid)
{
[FONT="Verdana"]    new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName);
    format(string, sizeof(string), "%s (%d)", PlayerName, playerid);
    new Text3D:label = Create3DTextLabel(string, 0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return 1;[/FONT]
}
this is color bright ? i wonder this is color print mean! T_T
Reply


Messages In This Thread
how to - by no1508 - 16.04.2015, 10:29
Re: how to ? .. what do you mean ? - by MEW273 - 16.04.2015, 10:43
Re: how to ? .. what do you mean ? - by no1508 - 16.04.2015, 10:45
Re: how to ? .. what do you mean ? - by MEW273 - 16.04.2015, 10:47
Re: how to ? .. what do you mean ? - by no1508 - 16.04.2015, 10:49
Re: how to ? .. what do you mean ? - by MEW273 - 16.04.2015, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)