Dateien

> > CS2D > Lua Scripts > ReVo | Anti-Spam
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch ReVo | Anti-Spam >

16 Kommentare2 kb, 469 Downloads

alt 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 >
1× editiert, zuletzt 01.08.14 16:34:14
Zugelassen von Seekay

Download Download

2 kb, 469 Downloads

Kommentare

16 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

GeoB99
Moderator Off Offline

user lilyagirl123 hat geschrieben
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.

alt 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
Ich mag es!

alt

Griever
User Off Offline

I love this file, great!
Ich mag es!

alt

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

alt

Storiem
User Off Offline

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

alt

Infinite Rain
Reviewer Off Offline

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

alt

tek69
User Off Offline

seems everyone think they are the best

alt

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.

alt

Random guy
User Off Offline

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

alt

XoOt
Super User Off Offline

There are better ways to avoid spam.

alt

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.
Zum Anfang Vorherige 1 Nächste Zum Anfang