Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- **************
- Anti-Bad Words
- **************
- By Grab (L3uX)
- **************
- Special Thanks an:
- RAZOR51 und Jigsaw für das Testen des Scripts
- */
- #include <a_samp>
- //define´s
- #define COLOR_2 0xFF6347AA
- new word[][]= {
- {"Fick"},
- {"Opfer"},
- {"Nutte"},
- {"Stinkt"},
- {"Hure"},
- {"Arschloch"},
- {"Maul"},
- {"Kiddy"},
- {"Noob"}
- };
- new string[256], plname[64];
- public OnFilterScriptInit()
- {
- print("\n**************************************");
- print("Anti-Badword v0.2 By L3uX (Grab) ");
- print("**************************************\n");
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- for(new i=0;i<sizeof(word);i++)
- {
- if(strfind(text,word[i],true) != -1)
- {
- GetPlayerName(playerid, plname, sizeof(plname));
- format(string, sizeof(string), "AdmCmd: %s wurde wegen Beleidigung gekickt ! ", plname);
- SendClientMessageToAll(COLOR_2, string);
- TogglePlayerControllable(playerid, 0);
- Kick(playerid);
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment