SA-MP Forums Archive
bots ? - 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: bots ? (/showthread.php?tid=115088)



bots ? - Lajko1 - 22.12.2009

guys i was looking on some server bots have names o.O ? how i can make that when i ''meet'' my maded bot i see his name on his head ...like for players Names on their had how i can do this ?


Re: bots ? - DeathOnaStick - 22.12.2009

Use your brain -_-.... There are 2 things you need use to make that: isplayerinrangeofpoint in combination with 3D text labels.


Re: bots ? - Correlli - 22.12.2009

You could attach a 3dtext to him.

https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer


Re: bots ? - V1ceC1ty - 22.12.2009

Quote:
Originally Posted by DeathOnaStick
Use your brain -_-.... There are 2 things you need use to make that: isplayerinrangeofpoint in combination with 3D text labels.
Why do you need IsPlayerInRangeOfPoint?


Re: bots ? - Lajko1 - 22.12.2009

aha ye i will try to make


Re: bots ? - Lajko1 - 22.12.2009

o god i cant figure out i was reading on wiki samp but i dont unterstand , if i msut name a bot but there is just ''playerid'' bots have allways different ids ...


Re: bots ? - DeathOnaStick - 22.12.2009

Quote:
Originally Posted by Lajko1
o god i cant figure out i was reading on wiki samp but i dont unterstand , if i msut name a bot but there is just ''playerid'' bots have allways different ids ...
Use IsPlayerNPC, GetPlayerName and some variables. That's all you need.


Re: bots ? - Lajko1 - 22.12.2009

simpel to say but what about show any code ? but ty for help but what the hell is TEXT:ID and where to get it ? o.O