Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new AntiCurse[][20] = {
- {"בן זונה"},
- {"שרמוטה"},
- {"שרמוט"},
- {"קוקסינל"},
- {"מיזדיין"},
- {"כוס עמק"},
- {"עוסעמק"},
- {"כוסאמק"},
- {"כוס אמק"},
- {"סעמק"},
- {"סעמק ערס"},
- {"סעמקערס"},
- {"סעמק ארס"},
- {"סעמקארס"},
- {"כוס"},
- {"כוש"}
- };
- new str[64];
- new Warning[MAX_PLAYERS];
- #define FILTERSCRIPT
- public OnFilterScriptInit() return print("[Load] Anti Curse By G r e a T");
- public OnFilterScriptExit() return print("[UnLoad] Anti Curse By G r e a T");
- public OnPlayerConnect(playerid) return Warning[playerid] = 0;
- public OnPlayerDisconnect(playerid, reason) return Warning[playerid] = 0;
- public OnPlayerText(playerid, text[]){
- for(new i, l = sizeof AntiCurse; i != l; i++){
- if(strfind(text[0], AntiCurse[i], true) != -1)
- {
- Warning[playerid]++;
- SendClientMessage(playerid, 0xFF0000AA, "!נא לא לקלל");
- format(str, sizeof str, "%02d/3 :אזהרות", Warning[playerid]);
- SendClientMessage(playerid, 0xFF0000AA, str);
- if(Warning[playerid] == 3) return Kick(playerid);
- return 0;}
- }
- return 1;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement