Need help with ncp bot 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)
+--- Thread: Need help with ncp bot name (
/showthread.php?tid=587910)
Need help with ncp bot name -
RocketBoy - 03.09.2015
Hi guyz,
i need help. i created this bot VV

but how to put name of bot on his head?
Re : Need help with ncp bot name -
KillerDVX - 03.09.2015
For my server, I used Attach3DTextLabelToPlayer.
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Re: Need help with ncp bot name -
RocketBoy - 03.09.2015
can u show me your bot code?
Re : Need help with ncp bot name -
KillerDVX - 03.09.2015
At the top i've added :
PHP код:
new Text3D:MickBot[MAX_PLAYERS];
Under OnPlayerDisconnect :
PHP код:
Delete3DTextLabel(MickBot[playerid]);
On the definition of the BOT (Under OnPlayerSpawn), I've added :
PHP код:
MarceloBot[playerid] = Create3DTextLabel("Marcelo", COLOR_DARKOLIVEGREEN, 30.0, 40.0, 30.0, 40.0, 0);
Attach3DTextLabelToPlayer(MickBot[playerid], playerid, 0.0, 0.0, 0.3);
That's it.
Re: Need help with ncp bot name -
RocketBoy - 03.09.2015
ok for this +rep! and can u tell me how to change bot skin?
Re : Need help with ncp bot name -
KillerDVX - 03.09.2015
Under the definition of your bot, always under OnPlayerSpaw.
PHP код:
SetPlayerSkin(playerid,your skin id);
Re: Need help with ncp bot name -
RocketBoy - 03.09.2015
thnnnnnnnnnnnnnnnks alot bro!