15.08.2011, 17:49
Thanks, but I want it to get the bot's name and id. I currently have this:
Nothing shows up above my the bot in-game though, whats wrong with 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;
}