little help ?
#2

use it as FS.
On top of ur script:
pawn Код:
new Text3D:npc3DTextLabel[MAX_PLAYERS];
Onplayerspawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script
   
    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"mynpc",true)) //put here your NPC name.
    {
        npc3DTextLabel[playerid] = Create3DTextLabel("bla bla bla",0x33FF33AA, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(npc3DTextLabel[playerid],playerid,0.0, 0.0, 0.7);
    }
    return 1;
}
Reply


Messages In This Thread
little help ? - by [CrC]reinixx - 07.01.2011, 16:37
Re: little help ? - by HyperZ - 07.01.2011, 16:44
Re: little help ? - by Joe Staff - 07.01.2011, 16:46
Re: little help ? - by HyperZ - 07.01.2011, 16:50
Re: little help ? - by [CrC]reinixx - 07.01.2011, 16:53
Re: little help ? - by HyperZ - 07.01.2011, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)