Need help with ncp bot name
#1

Hi guyz,
i need help. i created this bot VV

but how to put name of bot on his head?
Reply
#2

For my server, I used Attach3DTextLabelToPlayer.

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

can u show me your bot code?
Reply
#4

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_DARKOLIVEGREEN30.040.030.040.00);
      
Attach3DTextLabelToPlayer(MickBot[playerid], playerid0.00.00.3); 
That's it.
Reply
#5

ok for this +rep! and can u tell me how to change bot skin?
Reply
#6

Under the definition of your bot, always under OnPlayerSpaw.

PHP код:
SetPlayerSkin(playerid,your skin id); 
Reply
#7

thnnnnnnnnnnnnnnnks alot bro!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)