Guest User

Bad Word v1.0

a guest
Nov 12th, 2010
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.00 KB | None | 0 0
  1. /*
  2. **************
  3. Anti-Bad Words
  4. **************
  5. By Grab (L3uX)
  6. **************
  7. Special Thanks an:
  8. RAZOR51 und Jigsaw für das Testen des Scripts
  9. */
  10.  
  11.  
  12. #include <a_samp>
  13.  
  14. //define´s
  15. #define COLOR_2 0xFF6347AA
  16.  
  17. new word[][]= {
  18.     {"Fick"},
  19.     {"Opfer"},
  20.     {"Nutte"},
  21.     {"Stinkt"},
  22.     {"Hure"},
  23.     {"Arschloch"},
  24.     {"Maul"},
  25.     {"Kiddy"},
  26.         {"Noob"}
  27. };
  28.  
  29. new string[256], plname[64];
  30.  
  31. public OnFilterScriptInit()
  32. {
  33.     print("\n**************************************");
  34.     print("Anti-Badword v0.2 By L3uX (Grab) ");
  35.     print("**************************************\n");
  36.     return 1;
  37. }
  38.  
  39.  
  40. public OnPlayerText(playerid, text[])
  41. {
  42.  
  43.     for(new i=0;i<sizeof(word);i++)
  44.     {
  45.         if(strfind(text,word[i],true) != -1)
  46.         {
  47.         GetPlayerName(playerid, plname, sizeof(plname));
  48.         format(string, sizeof(string), "AdmCmd: %s wurde wegen Beleidigung gekickt ! ", plname);  
  49.         SendClientMessageToAll(COLOR_2, string);
  50.         TogglePlayerControllable(playerid, 0);
  51.         Kick(playerid);
  52.         }
  53.         return 1;
  54.     }
  55.     return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment