Advertisement
RiseAboveHate

AntiCurse by G r e a T

Oct 5th, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.21 KB | None | 0 0
  1. #include <a_samp>
  2. new AntiCurse[][20] = {
  3.     {"בן זונה"},
  4.     {"שרמוטה"},
  5.     {"שרמוט"},
  6.     {"קוקסינל"},
  7.     {"מיזדיין"},
  8.     {"כוס עמק"},
  9.     {"עוסעמק"},
  10.     {"כוסאמק"},
  11.     {"כוס אמק"},
  12.     {"סעמק"},
  13.     {"סעמק ערס"},
  14.     {"סעמקערס"},
  15.     {"סעמק ארס"},
  16.     {"סעמקארס"},
  17.     {"כוס"},
  18.     {"כוש"}
  19. };
  20. new str[64];
  21. new Warning[MAX_PLAYERS];
  22. #define FILTERSCRIPT
  23. public OnFilterScriptInit() return print("[Load] Anti Curse By G r e a T");
  24. public OnFilterScriptExit() return print("[UnLoad] Anti Curse By G r e a T");
  25. public OnPlayerConnect(playerid) return Warning[playerid] = 0;
  26. public OnPlayerDisconnect(playerid, reason) return Warning[playerid] = 0;
  27. public OnPlayerText(playerid, text[]){
  28.     for(new i, l = sizeof AntiCurse; i != l; i++){
  29.         if(strfind(text[0], AntiCurse[i], true) != -1)
  30.         {
  31.             Warning[playerid]++;
  32.             SendClientMessage(playerid, 0xFF0000AA, "!נא לא לקלל");
  33.             format(str, sizeof str, "%02d/3 :אזהרות", Warning[playerid]);
  34.             SendClientMessage(playerid, 0xFF0000AA, str);
  35.             if(Warning[playerid] == 3) return Kick(playerid);
  36.             return 0;}
  37.     }
  38.     return 1;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement