SA-MP Forums Archive
WhenPlayerTypes - 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: WhenPlayerTypes (/showthread.php?tid=74698)



WhenPlayerTypes - Sal_Kings - 25.04.2009

Whats the script for something like this


Once player types

Hello
Then a message shows
Hello how may i help you?


Re: WhenPlayerTypes - Think - 25.04.2009

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strcmp("help", text, true, 10))
    {
      SendClientMessage(playerid, 0x000000, "Yes??");
    }
    return 1;
}
untested, just copied from onplayercommandtext and edited it for onplayertext.