Why wont my npc talk?
#1

Hey,

Why wont my npc talk?

This is my code.

Код:
public OnPlayerSpawn(playerid)
{
  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, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerChatBubble(playerid, "text", 0xFF0000FF, 100.0, 10000);

    }
    return 1;
  }
Please help me

Thank You
Reply


Messages In This Thread
Why wont my npc talk? - by Sampiscool123 - 07.01.2010, 21:17
Re: Why wont my npc talk? - by Sampiscool123 - 07.01.2010, 23:32
Re: Why wont my npc talk? - by Nerolat - 12.07.2010, 16:57
Re: Why wont my npc talk? - by introzen - 12.07.2010, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)