SA-MP Forums Archive
Showing Bot's name - 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: Showing Bot's name (/showthread.php?tid=157125)



Showing Bot's name - aNdReSk - 05.07.2010

hey, is there a way to show a bot's name like a player's name is shown?


Re: Showing Bot's name - Fj0rtizFredde - 05.07.2010

Something like this?
pawn Код:
//OnPlayerSpawn:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid, npcname, sizeof(npcname));
format(string, sizeof(string), "A bot with the name: %s has just spawned", npcname);
SendClientMessageToAll(COLOR, string);
}



Re: Showing Bot's name - aNdReSk - 05.07.2010

No i mean, on top of its head :P
all the time


Re: Showing Bot's name - Fj0rtizFredde - 05.07.2010

Use a 3DTextLabel then Go to the sa-mp wiki and you will see how it works


Re: Showing Bot's name - aNdReSk - 05.07.2010

:P Ok thx