English ReVo | Anti-Spam icon

16 comments
24.07.14 05:29:05 pm
like 2 like it!
2 kb, 133 Downloads
ReVoltage
User
Offline Off
> Introduction:
• Hello us , today I uploaded an Anti-Spam Script.
• Yeah, I know its easy, but I think its different and no one uploaded script like this yet. The other anti-spam script were like, "When you send 2 messages within 3 secs (example), the second message will disappear and its pretty annoying if its a long message, you have to type it again."

> Feature:
• You can only send 1 message in 3 secs. (Can be edited in the script)
• If you send 2 messages or more within 3 secs, the message will be delayed and will it will appear in chat 3 secs later.

> Update
• Some bug fixed
• ms100 hook removed
• Script is now shorter

> Note:
• I think screenshots are useless, just download and proof it yourself..
• I know its useless for you guys who are pro, but maybe someone want it.

> Permission:
• You are allowed to edit this! √
• You can use this on your server! √
• Dont say its yours! ×
• Write me (ReVoltage) in the credit if you want to upload this script to other web! √

Spoiler >
edited 1×, last 01.08.14 04:34:14 pm
ok This file has been reviewed and approved by Seekay (04.12.15 05:41:43 pm)

Comments

16 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
09.12.16 10:05:33 am
Up
Fraizeraust
Moderator
Offline Off
user lilyagirl123 has written:
addhook("ms100","pl_ms100")
function pl_ms100()
for id = 1,32 do
if player(id,"exists") and chattimer[id] > 0 then
chattimer[id] = chattimer[id] - 100
end
end
end

That'd be overkill for sure because executing the numeric
for
loop 32 times each millisecond will cause lags. You'll have roughly few frames rest for other operations. Furthermore, you did not tab the code which is a mess to see type blocks of the code.
09.12.16 05:00:52 am
like I like it!
Up
lilyagirl123
User
Offline Off
function Array(a,b)
local array = {}
for i = 1,a do
array[i] = b
end
return array
end

timer = 15 -- 1,5 second
chattimer = Array(32,0)

addhook("say","pl_say")
function pl_say(id,w)
if chattimer[id] > 0 then
msg2(id,"Please do not spam!")
return 1
else
chattimer[id] = math.floor(timer) * 100
end
end

addhook("ms100","pl_ms100")
function pl_ms100()
for id = 1,32 do
if player(id,"exists") and chattimer[id] > 0 then
chattimer[id] = chattimer[id] - 100
end
end
end
02.08.14 05:29:01 am
like I like it!
Up
Griever
User
Offline Off
I love this file, great!
01.08.14 04:25:53 pm
Up
ReVoltage
User
Offline Off
@user Fheat Mammonths & @user Forzegrew: Kay then.
@user Storiem: If that so, can you please give me the link of the lua like mine?
@user JaCkoFTeRrOr: Of course not. Unless you have 2 or more say hook.
@user MikuAuahDark: You are right, I actually dont need that ms100 hook
edited 1×, last 30.08.14 11:09:53 am
01.08.14 02:31:52 pm
Up
JaCkoFTeRrOr
User
Offline Off
It's a good Antispam Lua ReVo, the only problem is when you say anything in Server will this message doubled posted.

7/10 for this Lua
31.07.14 05:30:22 pm
Up
Forzegrew
User
Offline Off
Useless.
31.07.14 05:55:00 am
Up
Storiem
User
Offline Off
All lua's have this ''Anti-Spam''.
26.07.14 03:49:30 pm
Up
MikuAuahDark
User
Offline Off
@user Fheat Mammonths: Then, can you make lua like this?
25.07.14 07:24:29 pm
Up
Fheat Mammonths
User
Offline Off
Simple, and easy.
25.07.14 10:30:44 am
Up
Infinite Rain
Reviewer
Offline Off
@user Avo:
If you think that this script is "not useful at all", then you got a problem.
25.07.14 07:20:32 am
Up
404_Monk
User
Offline Off
seems everyone think they are the best
25.07.14 02:55:57 am
Up
MikuAuahDark
User
Offline Off
Why there's a cs2d lua hook ms100 at there?
24.07.14 09:58:54 pm
Up
Pseudon
User
Offline Off
If you make it to check how long the message is, and make the delay as long as the message is, if you know what I mean, I will give you a like. Pretty sure it's not hard.
24.07.14 05:49:03 pm
Up
Random guy
User
Offline Off
The delay message feature sounds cool, I'll give you that.
24.07.14 05:44:53 pm
Up
XoOt
Super User
Offline Off
There are better ways to avoid spam.
24.07.14 05:39:31 pm
Up
Avo
User
Offline Off
Good guy Avobolt, pastes the script for lazy-asses that don't want to download the file. >

Boring script, done many times and not useful at all.
To the start Previous 1 Next To the start