rastrero 
Master
 
Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3
![]()
|
RE: SphereServer flood control
I think u can do this until this is fixed.
Code:
[function f_oncommand]
if <tag0.antiflood>
if <tag0.antiflood>>=5
disconnect
else
tag.antiflood +=1
endif
else
tag.antiflood=1
newitem i_antiflood
equip <new>
endif
[itemdef i_antiflood]
type=memo
on=@equip
timer=1
on=@timer
if <cont.tag0.antiflood><=4
cont.tag.antiflood
remove
endif
return 1
with this script if someone cast more than 5 commands within 1 sec, server will disconnect him.
(This post was last modified: 06-22-2017 02:56 AM by rastrero.)
|
|
06-22-2017 02:51 AM |
|
|