29.09.2016, 12:51
(
Последний раз редактировалось HoangNam; 04.10.2016 в 04:11.
)
ANTI META GAMING/SWEAR/SPAM
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
III. Edit
V.Note
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?
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
SIMPLE SYSTEM BUT NOT BAD, RIGHT?
I.IntroduceHello ! 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)
- 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,... :
- Edit time spam:
- Edit time to Unmute:
If you like it, +REP for me , thanks
IV. DownLoad
http://pastebin.com/bu019AjE
- 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 ",")
Код:
if((gettime()-ChatSpamTime[playerid][2])<5) Find it and then edit "5" to number you want (seconds)
Код:
#define AutoUnmuteTime 2 "2" in here is minutes
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.
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; }