Why wont my npc talk? - 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: Why wont my npc talk? (
/showthread.php?tid=119355)
Why wont my npc talk? -
Sampiscool123 - 07.01.2010
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
Re: Why wont my npc talk? -
Sampiscool123 - 07.01.2010
please help
Re: Why wont my npc talk? -
Nerolat - 12.07.2010
Lol He will not talk.Your script just creates it and Put in the vehicle.You need to be a good scripter to make a good bot.
Re: Why wont my npc talk? -
introzen - 12.07.2010
Your NPC wont talk because you talked while recording it... you gotta script and use SendClientMessage to make him talk