08.03.2014, 15:35
Take a look on this: Attach3DTextLabelToPlayer
__
__
pawn Код:
new Text3D:NPCTag[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
if(IsPlayerNPC(playerid) {
new string[256], name[MAX_PLAYER_NAME];
format(string, sizeof(string), "Your NPC Name (Define it or something)");
NPCTag[playerid] = Create3DTextLabel(string, 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(NPCTag[playerid], playerid, 0.0, 0.0, 0.7); }
return 1;
}
public OnPlayerDisconnect(playerid) {
if(IsPlayerNPC(playerid) {
Destroy3DTextLabel(NPCTag[playerid]); }
return 1;
}