SA-MP Forums Archive
Getting parts of the text of 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: Getting parts of the text of OnPlayerText (/showthread.php?tid=104920)



Getting parts of the text of OnPlayerText - Striker_Moe - 26.10.2009

Hi there.

I need to know - how can I get specific parts of the text the players enter? Like.. if someone types "fuck" in the chat, heґs getting a message sent saying "Same".

Thanks


Re: Getting parts of the text of OnPlayerText - Correlli - 26.10.2009

https://sampwiki.blast.hk/wiki/Scripting...ns_Old#strfind


Re: Getting parts of the text of OnPlayerText - MenaceX^ - 26.10.2009

pawn Код:
if(strfind(text,"fuck",true)!=-1) Kick(playerid);