how to make a npc talk ?
#1

Hello everyone, i have created a npc but i want make him talk.

How to proceed ?
Reply
#2

You could use:

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer

And attach the source of sound to the position of the NPC.
Reply
#3

I want him to speak no play music


(im french sorry for my bad english ^^)
Reply
#4

use SendChat then use a format string

like

pawn Код:
new string[128], npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, MAX_PLAYER_NAME);
if(!strcmp(npcpname, "YourNPCName", true))
{
    format(string, 128, "%s: Your word here!", npcname);
    SendClientMessageToAll(-1, string);
}
Reply
#5

SetPlayerChatBubble(playerid, "Hello i am a NPC", -1, 100.0, 10000);
Reply
#6

How to do this only if A player is is in a float 10z,x,y?

And send the message only to that playeR?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)