[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
#2

Not bad dude..
i will test it ofc..
Reply
#3

Quote:
Originally Posted by Younes44
Посмотреть сообщение
Not bad dude..
i will test it ofc..
Thanks!!
Reply
#4

Good job, and 'Warnings' variable should be per players.
Reply
#5

Quote:
Originally Posted by X337
Посмотреть сообщение
Good job, and 'Warnings' variable should be per players.
Thanks!! I'm not a "Super" Scripter so thank you again for your comment.
Reply
#6

So does that work as if the player says the words in the array it mutes them? If so, that's actually genius. There's nothing worse than someone spamming admin or bug lol. But how is it anti metagame?
Reply
#7

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
So does that work as if the player says the words in the array it mutes them? If so, that's actually genius. There's nothing worse than someone spamming admin or bug lol. But how is it anti metagame?
Ohmm... Example:
A: Hello? Are you anadmin?
=> MG
Some bugs i didn't fix it, like:
A: Hello! My name is Tomg
=> The system will give him a warning
Reply
#8

I am administrating this place.
You're skilled!
Show me your ID card.

All those examples would trigger your anti MG system
Reply
#9

Wait a sec, isn't this AntiSpam function copied from here?
https://sampforum.blast.hk/showthread.php?tid=616698

https://www.diffchecker.com/tzKO35Ys
Reply
#10

Quote:
Originally Posted by Spmn
Посмотреть сообщение
I am administrating this place.
You're skilled!
Show me your ID card.

All those examples would trigger your anti MG system
yea true, and i think anti-MG is not possible
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)