Please help with bad word
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/Strfind perhaps.
Reply
#3

thanks it working!!
Reply
#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
#5

............. Edited.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)