NPC Names - 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)
+--- Thread: NPC Names (
/showthread.php?tid=325688)
NPC Names -
Dripac - 14.03.2012
Hey,
can anyone help me on how to create NPC Names above the NPC's heads, so they'll show for everyone?
Re: NPC Names - T0pAz - 14.03.2012
See this.
AW: NPC Names -
Dripac - 14.03.2012
but that's just a text label, i want it like a real name with id
Re: AW: NPC Names - T0pAz - 14.03.2012
Quote:
Originally Posted by Dripac
but that's just a text label, i want it like a real name with id
|
There is no seperate function for it. You have to do it on the 3dtextlabel wise.
Re: NPC Names -
TRIPLE-xXx-GAMEING - 14.03.2012
hmmmmmmmmmmmmm
i have no information about npc's but i think you can do it by when you join your npc in the server from the function on gamemode int then as if i know npc takes id's too like id 0 and like that so write this line in the call back on gamemode int '
SetPlayerName(0,[BOT]KILLER);
0(zero) if the npc's id = 0 you need to chage it
dont know a bit that it works or not but after thinking with logic it should work
Re: NPC Names -
Dripac - 14.03.2012
Quote:
Originally Posted by TRIPLE-xXx-GAMEING
hmmmmmmmmmmmmm
i have no information about npc's but i think you can do it by when you join your npc in the server from the function on gamemode int then as if i know npc takes id's too like id 0 and like that so write this line in the call back on gamemode int '
SetPlayerName(0,[BOT]KILLER);
0(zero) if the npc's id = 0 you need to chage it
dont know a bit that it works or not but after thinking with logic it should work
|
There is no SetPlayerName function
Re: NPC Names -
TRIPLE-xXx-GAMEING - 14.03.2012
hey who said not ever checked a_players its alredy incuded by samp