Tagname NPC please help :(
#2

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;
}
Reply


Messages In This Thread
Tagname NPC please help :( - by benniirpando - 08.03.2014, 15:29
Re: Tagname NPC please help :( - by RenovanZ - 08.03.2014, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)