Name tag for bots
#3

Thanks, but I want it to get the bot's name and id. I currently have this:

pawn Код:
if(!strcmp(npcname, "AirCanada", true))
{  
    new string[128], Float:X, Float:Y, Float:Z, PlayerText3D:playertextid;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerName(playerid,npcname,sizeof(npcname));

    format(string,128,"%s (%d)",npcname,playerid);
    playertextid = CreatePlayer3DTextLabel(playerid,string,COLOR_WHITE,X,Y,Z,40.0);
    return 1;
}
Nothing shows up above my the bot in-game though, whats wrong with this ?
Reply


Messages In This Thread
[SOLVED]Name tag for bots - by grand.Theft.Otto - 15.08.2011, 17:32
Re: Name tag for bots - by Jeffry - 15.08.2011, 17:35
Re: Name tag for bots - by grand.Theft.Otto - 15.08.2011, 17:49
Re: Name tag for bots - by Libra_PL - 15.08.2011, 17:51
Re: Name tag for bots - by Jeffry - 15.08.2011, 17:55
Re: Name tag for bots - by grand.Theft.Otto - 15.08.2011, 18:08
Re: Name tag for bots - by iPLEOMAX - 15.08.2011, 18:27
Re: Name tag for bots - by grand.Theft.Otto - 15.08.2011, 18:38
Re: Name tag for bots - by iPLEOMAX - 15.08.2011, 18:57
Re: Name tag for bots - by grand.Theft.Otto - 15.08.2011, 19:06
Re: Name tag for bots - by Kingunit - 15.08.2011, 19:10
Re: Name tag for bots - by iPLEOMAX - 15.08.2011, 19:13
Re: Name tag for bots - by grand.Theft.Otto - 15.08.2011, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)