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

[FONT="Verdana"]how to ? .. what do you mean ? color ?

[SIZE="5"][SIZE="4"]all white, all gray and bright..

this is plugin ?
Reply
#2

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()
{
    // This will fully disable all player nametags
    // (including health and armour bars)
    ShowNameTags(0);
}
We are also using Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, FloatrawDistance, virtualworld, testLOS) to first create our 3d text label.
Then under OnPlayerConnect you will place your custom text labels:
pawn Код:
public OnPlayerConnect(playerid)
{
    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;
}
Reply
#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
#4

Quote:
Originally Posted by no1508
Посмотреть сообщение
this is color bright ?
The color is white. You can edit the color by changing this argument:
new Text3D:label = Create3DTextLabel(string, 0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Reply
#5

Quote:
Originally Posted by MEW273
Посмотреть сообщение
The color is white.
picture incldue name tag color is different color to normal color(SCM ..)

this is color very bright

again to picture


i think .. this is to use stroke? outline? system ..
Reply
#6

Quote:
Originally Posted by no1508
Посмотреть сообщение
picture incldue name tag color is different color to normal color(SCM ..)

this is color very bright

again to picture


i think .. this is use stroke? outline? sytem ..
Try using this:

new Text3D:label = Create3DTextLabel(string, 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);

It is very difficult to determine the exact color from those pictures.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)