How do i attach a chat bubble to a bot?
#5

Quote:
Originally Posted by [mad
MLK (dino-host.net) ]
Should this work?:

Код:
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "rhinobot", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, tank, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerChatBubble(playerid, "Im a tank RAWR!", yellow, 40.0, -1);
    }
    return 1;
  }
i dont know the exact fucntion names
but you can make an 3d text label and attach it to the bot using the attatch function for 3d labels,
search the wiki, just return playerid as the botid using your method
Reply


Messages In This Thread
How do i attach a chat bubble to a bot? - by [mad]MLK - 03.10.2009, 19:20
Re: How do i attach a chat bubble to a bot? - by Danny_Costelo - 03.10.2009, 19:21
Re: How do i attach a chat bubble to a bot? - by d0 - 03.10.2009, 19:22
Re: How do i attach a chat bubble to a bot? - by [mad]MLK - 03.10.2009, 19:28
Re: How do i attach a chat bubble to a bot? - by rensfromrpas - 03.10.2009, 20:21
Re: How do i attach a chat bubble to a bot? - by Jay_ - 03.10.2009, 22:39
Re: How do i attach a chat bubble to a bot? - by Sew_Sumi - 03.10.2009, 23:16
Re: How do i attach a chat bubble to a bot? - by [mad]MLK - 04.10.2009, 00:19
Re: How do i attach a chat bubble to a bot? - by Gappy - 04.10.2009, 00:30

Forum Jump:


Users browsing this thread: 2 Guest(s)