31.01.2011, 18:15
pawn Код:
public OnGameModeInit()
{
ShowNameTags( 0 );
}
new Text3D:NameTag[500];
public OnPlayerConnect(playerid)
{
new pName[24], string[30];
GetPlayerName(playerid, pName, 24);
format(string, sizeof(string), "%s (%i)", pName, playerid);
NameTag[playerid] = Create3DTextLabel(string, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 0.0, 0);
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, +2.5) //Not sure about the Z Offset, you might have to play with it
return 1;
}