Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock ChangeSwear(Text[], Symbol = '*')
- {
- new iWords = sizeof(BadWords), i;
- for (new BadWord; BadWord != iWords; ++BadWord)
- {
- while ((i = strfind(Text, BadWords[BadWord], true)) != -1)
- {
- for (new x = (i + strlen(BadWords[BadWord])); i != x; ++i)
- {
- Text[i] = Symbol;
- }
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement