> OnPlayerText - 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: > OnPlayerText (
/showthread.php?tid=161561)
> OnPlayerText -
DarkPower - 20.07.2010
How to make if player type something like "fuck" to he get message " you are not allowed to say that "
?
Re: > OnPlayerText -
Яσскѕтая - 20.07.2010
I think this will work for you
pawn Код:
if (text[strlen(text)-1] == 'fuck')
{
SendClientMessage(playerid, COLOR_RED, "You are not allowed to say that word.");
}
Re: > OnPlayerText -
DarkPower - 20.07.2010
thank you