[SOLVED]How do I make Talking bots
#1

I want to make a Bot like

example

Skulls Says: Stupid you
Bot: No you are


Can anyone please help
Reply
#2

Check the players text using strcmp with common phrases then use https://sampwiki.blast.hk/wiki/NPC:SendChat
Reply
#3

OnPlayerText:
Код:
if(!strcmp(text, "stopit you", true))
{
SendClientMessageToAll(0xffffffAA,"Bot: No, you are!"); 
//EDIT: or SendChat("No, you are!");
}
Reply
#4

Quote:
Originally Posted by GTAguillaume
OnPlayerText:
Код:
if(!strcmp(text, "stopit you", true))
{
SendClientMessageToAll(0xffffffAA,"Bot: No, you are!"); 
//EDIT: or SendChat("No, you are!");
}
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)