Advertisement
Ewolutions

Untitled

Apr 30th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.39 KB | None | 0 0
  1. stock ChangeSwear(Text[], Symbol = '*')
  2. {
  3.     new iWords = sizeof(BadWords), i;
  4.     for (new BadWord; BadWord != iWords; ++BadWord)
  5.     {
  6.         while ((i = strfind(Text, BadWords[BadWord], true)) != -1)
  7.         {
  8.             for (new x = (i + strlen(BadWords[BadWord])); i != x; ++i)
  9.             {
  10.                 Text[i] = Symbol;
  11.             }
  12.         }
  13.     }
  14.     return true;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement