Anti MetaGaming/Swear (Simple System)(UPDATED) -
HoangNam - 29.09.2016
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
Re: Anti MetaGaming/Swear/Spam (Simple System) -
Younes44 - 29.09.2016
Not bad dude..
i will test it ofc..
Re: Anti MetaGaming/Swear/Spam (Simple System) -
HoangNam - 30.09.2016
Quote:
Originally Posted by Younes44
Not bad dude..
i will test it ofc..
|
Thanks!!
Re: Anti MetaGaming/Swear/Spam (Simple System) -
X337 - 30.09.2016
Good job, and 'Warnings' variable should be per players.
Re: Anti MetaGaming/Swear/Spam (Simple System) -
HoangNam - 30.09.2016
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.
Re: Anti MetaGaming/Swear/Spam (Simple System) -
TakeiT - 30.09.2016
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?
Re: Anti MetaGaming/Swear/Spam (Simple System) -
HoangNam - 30.09.2016
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 an
admin?
=> MG
Some bugs i didn't fix it, like:
A: Hello! My name is
Tomg
=> The system will give him a warning
Re: Anti MetaGaming/Swear/Spam (Simple System) -
Spmn - 30.09.2016
I am administrating this place.
You're skilled!
Show me your ID card.
All those examples would trigger your anti MG system
Re: Anti MetaGaming/Swear/Spam (Simple System) -
jlalt - 30.09.2016
Wait a sec, isn't this AntiSpam function copied from here?
https://sampforum.blast.hk/showthread.php?tid=616698
https://www.diffchecker.com/tzKO35Ys
Re: Anti MetaGaming/Swear/Spam (Simple System) -
SeanDenZYR - 02.10.2016
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