SA-MP Forums Archive
[Help] Naming the bots (NPC) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Naming the bots (NPC) (/showthread.php?tid=266756)



[Help] Naming the bots (NPC) - TiNcH010 - 06.07.2011

Hello everyone. Well, I tried to do the following:
Putting a name above the head to bots (NPC).
As I do that?
Greetings and hope to elderly answers! : D


Re: [Help] Naming the bots (NPC) - =WoR=Varth - 06.07.2011

Make a 3DTextLabel above their head.


Respuesta: [Help] Naming the bots (NPC) - TiNcH010 - 06.07.2011

How?
Do you write for me?


Re: [Help] Naming the bots (NPC) - =WoR=Varth - 06.07.2011

No I wrote for your blinking siggy. -.-
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel


Re: [Help] Naming the bots (NPC) - SmileyForCheat - 06.07.2011

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 0;
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"Boater",true)) {
        PutPlayerInVehicle(playerid, Boat, 0);
        SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
        new Text3D:boat = Create3DTextLabel("NPC_IDIOT(ID:0)",0x33AA33AA,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(boat, playerid, 0.0, 0.0, 0.5);
    }
I use NPC SCRIPT MADY BY FLAKE AND REDIRECT_LEFT V1CEC1TY, LOL


Respuesta: Re: [Help] Naming the bots (NPC) - TiNcH010 - 06.07.2011

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
No I wrote for your blinking siggy. -.-
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Because you don't know? -.-
Thank you SmileyForCheat!
Works!
Byeeee