how to -
no1508 - 16.04.2015
[FONT="Verdana"]how to ? .. what do you mean ? color ?
[SIZE="5"][SIZE="4"]all white, all gray and bright..
this is plugin ?
Re: how to ? .. what do you mean ? -
MEW273 - 16.04.2015
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;
}
Re: how to ? .. what do you mean ? -
no1508 - 16.04.2015
[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
Re: how to ? .. what do you mean ? -
MEW273 - 16.04.2015
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);
Re: how to ? .. what do you mean ? -
no1508 - 16.04.2015
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 ..
Re: how to ? .. what do you mean ? -
MEW273 - 16.04.2015
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.