Please help with bad word
#4

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***
Reply


Messages In This Thread
Please help with bad word - by MA_proking - 01.09.2011, 06:13
Re: Please help with bad word - by =WoR=Varth - 01.09.2011, 06:17
Re: Please help with bad word - by MA_proking - 01.09.2011, 06:24
Re: Please help with bad word - by FireCat - 01.09.2011, 07:14
Re: Please help with bad word - by =WoR=Varth - 01.09.2011, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)