Files

> > CS2D > Lua Scripts > ReVo | Anti-Spam
Files overviewCS2D overviewLua Scripts overview

English ReVo | Anti-Spam >

16 comments2 kb, 510 Downloads

old ReVo | Anti-Spam

ReVoltage
User Off Offline

> 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
Approved by Seekay

Download Download

2 kb, 510 Downloads

Comments

16 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

GeoB99
Moderator Off Offline

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.

old try this!

lilyagirl123
User Off Offline

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
I like it!

old

Griever
User Off Offline

I love this file, great!
I like it!

old

JaCkoFTeRrOr
User Off Offline

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

old

Storiem
User Off Offline

All lua's have this ''Anti-Spam''.

old

Infinite Rain
Reviewer Off Offline

@user Avo:
If you think that this script is "not useful at all", then you got a problem.

old

tek69
User Off Offline

seems everyone think they are the best

old

Pseudon
User Off Offline

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.

old

Random guy
User Off Offline

The delay message feature sounds cool, I'll give you that.

old

XoOt
Super User Off Offline

There are better ways to avoid spam.

old

Avo
User Off Offline

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