[FilterScript] Anti MetaGaming/Swear/Spam (Simple System)
#1

ANTI META GAMING/SWEAR/SPAM
SIMPLE SYSTEM BUT NOT BAD, RIGHT?
I.Introduce
Hello ! I'm HoangNam (NDZ) I'm from Vietnam. This is my first filterscript I share on Forum. It's simple and maybe it isn't actually a filterscript but I think someone will need it so I share it!!
II. Features
- Anti MetaGaming/Swear
- If you MG/Swear three times, we will kick you
- If you Spam three times(3 warnings) in about 5 seconds, you will be mute
- If you are an Admin, you can MG/Swear (I didn't test this system because I'm so lazy and I don't use any gamemodes have system makeadmin)

III. Edit
You can edit by yourself,
- Add more symbols, characters,... :
Код:
new MG [] = //You can add more symbols, characters in here
{
    "PG",
    "MG",
    "RK",
    "admin",
    "id",
    "hack",
    "bug",
    "SK",
    "BK",
Find it and then add more, ex: "lazy", (Don't forget ",")
- Edit time spam:
Код:
if((gettime()-ChatSpamTime[playerid][2])<5)
Find it and then edit "5" to number you want (seconds)
- Edit time to Unmute:
Код:
#define AutoUnmuteTime 2
"2" in here is minutes
If you like it, +REP for me , thanks
IV. DownLoad
http://pastebin.com/bu019AjE

V.Note
Код:
Special thanks to BlackWolf for SPAM Idea but I don't copy anything from other else, this Tutorial give me the idea. (copy code from a topic scripting help? Are you kiding me?)
https://sampforum.blast.hk/showthread.php?tid=301568&highlight=anti+spam
My MAIN Idea is Anti MetaGaming not Anti Spam so I dont care about anything with Spam in here. OK.
VI. Update
I updated new version, not too much bug
http://pastebin.com/xmCJj00e
Past version strfind had some bugs, in this version, there is only one bug:
Example:
A: Hello Pgent
PG -> Anti
How to add more?
Код:
if(strfind(text, "mg", true) != -1 && PlayerInfo[playerid][AdminLevel] == 0)
        {
            SendClientMessage(playerid, -1, "MetaGaming!! Stop!");
            return 0;
        }
Add this and replace "mg" to anything you want And finally, I'm so sorry about this Anti Spam, too much. But my Main Idea is Anti MG/Swear
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)