[SOLVED]How do I make Talking bots - 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: [SOLVED]How do I make Talking bots (
/showthread.php?tid=118724)
[SOLVED]How do I make Talking bots -
Hijolion - 04.01.2010
I want to make a Bot like
example
Skulls Says: Stupid you
Bot: No you are
Can anyone please help
Re: [UNSOLVED]How do I make Talking bots -
[HiC]TheKiller - 04.01.2010
Check the players text using strcmp with common phrases then use
https://sampwiki.blast.hk/wiki/NPC:SendChat
Re: [UNSOLVED]How do I make Talking bots -
GTAguillaume - 04.01.2010
OnPlayerText:
Код:
if(!strcmp(text, "stopit you", true))
{
SendClientMessageToAll(0xffffffAA,"Bot: No, you are!");
//EDIT: or SendChat("No, you are!");
}
Re: [UNSOLVED]How do I make Talking bots -
Hijolion - 04.01.2010
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