SA-MP Forums Archive
About detectin' the words - 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: About detectin' the words (/showthread.php?tid=159879)



About detectin' the words - samuel_hamza - 14.07.2010

I want to know how to detect the word, for exemple, if someone writes in /b "fuck you", the script detect it, then SendClientMessage(playerid, COLOR," fuck you too"); something... lol..


Re: About detectin' the words - Finn - 14.07.2010

strfind

Could help you a bit.


Re: About detectin' the words - samuel_hamza - 14.07.2010

It works even I wrote in /b or /r or something ?


Re: About detectin' the words - samuel_hamza - 14.07.2010

And where should I add it ? in OnGameModeInIt ?!


Re: About detectin' the words - Finn - 14.07.2010

My guess is that you should add it in /b command if that's where you want to detect the "fuck you" words.