SA-MP Forums Archive
Please help with bad word - 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)
+--- Thread: Please help with bad word (/showthread.php?tid=280442)



Please help with bad word - MA_proking - 01.09.2011

When player type bad words like fuck noobs etc
so there is a new text appear for example
proking type noobs

but it appers

Код:
proking(1): I will not flame on this server



Re: Please help with bad word - =WoR=Varth - 01.09.2011

https://sampwiki.blast.hk/wiki/Strfind perhaps.


Re: Please help with bad word - MA_proking - 01.09.2011

thanks it working!!


Re: Please help with bad word - FireCat - 01.09.2011

pawn Код:
#define DisableBadword(%1) for(new i=0; i<strlen(text); i++) if(strfind(text[i], %1, true) == 0) for(new a=0; a<256; a++) if (a >= i && a < i+strlen(%1)) text[a]='*'
Then under OnPlayerText add
DisableBadWord("Fuck");
It will say F***


Re: Please help with bad word - =WoR=Varth - 01.09.2011

............. Edited.