Please Help | Anti Swear System - 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: Please Help | Anti Swear System (
/showthread.php?tid=68434)
Please Help | Anti Swear System -
-Davee- - 10.03.2009
I have some antiswear but if player writes it in that "fuck" antiswearr blocked msg but if player writes it in that "f u c k" or "f uck" is not useful then( no block msg )
Any idea?
Re: Please Help | Anti Swear Systes -
MPKaboose - 10.03.2009
add the other words to the anti swear and it should work
Re: Please Help | Anti Swear Systes -
MenaceX^ - 10.03.2009
I did it in other way. I've made my own words varieble and added it as strfind to the text. If it's strfind one of the word. It doesn't send the whole message.
Re: Please Help | Anti Swear Systes -
-Davee- - 10.03.2009
I don't add every msg

eg.: n 0 0 b etc..
MenaceX pls post it.
Re: Please Help | Anti Swear Systes -
Cueball - 10.03.2009
How I would do it would be to remove all spaces from the string, so writing something like "hi s a - m p fo r um ." would come up as "hisa-mpforum."
Doing it like this would mean that writing spaced-out swear words would result in no-spaces, thus being triggered by your anti-swear.
~Cueball~
Re: Please Help | Anti Swear Systes -
ICECOLDKILLAK8 - 10.03.2009
This might help
http://forum.sa-mp.com/index.php?topic=90748.0
Re: Please Help | Anti Swear Systes -
Dujma - 10.03.2009
http://forum.sa-mp.com/index.php?topic=52770.0
Re: Please Help | Anti Swear Systes -
ICECOLDKILLAK8 - 10.03.2009
Dujimja that means if they type f uck then it wont work, The link i gave will work even if they type fu-ck
Re: Please Help | Anti Swear Systes -
Dujma - 10.03.2009
Quote:
Originally Posted by JeNkStAX
Dujimja that means if they type f uck then it wont work, The link i gave will work even if they type fu-ck
|
Ok. But if someone wants so hard to swear why to stop them xD Just punish them.
Re: Please Help | Anti Swear Systes -
-Davee- - 10.03.2009
-