Forum

> > CS2D > Scripts > Auto ban for advertising ip
Forums overviewCS2D overview Scripts overviewLog in to reply

English Auto ban for advertising ip

24 replies
Page
To the start Previous 1 2 Next To the start

old Re: Auto ban for advertising ip

dizziness
User Off Offline

Quote
user Cure Pikachu has written
That script does the opposite of what the script is supposed to do. (Ban non-moderators who mentions content with 4 dots)

Time to "flip over" the not_mod(id) function.
1
2
3
4
5
6
7
8
function not_mod(id)
	for i=0,#mods,1 do
		if player(id,"usgn")==mods[i] then
			return false -- Flipped
		end
	end
	return true -- Flipped
end
The rest is kept intact.


Still not working

old Re: Auto ban for advertising ip

dizziness
User Off Offline

Quote
user DannyDeth has written
It has to do with the iteration of the table, trying putting the ID's like this:
1
mods = { [0]=12616, [1]=7499, [2]=31245 }


DannyDeth, Can you edit the lua script? Now i need, auto ban ip,usgn and name it will make me more easier re-write the bans at forum

old Re: Auto ban for advertising ip

Apache uwu
User Off Offline

Quote
Lua DOES have a wild card string check.

string.match()

It has some very unique and interesting string patterns.

I can make it--just lazy at the moment

old Re: Auto ban for advertising ip

dizziness
User Off Offline

Quote
user Apache uwu has written
Lua DOES have a wild card string check.

string.match()

It has some very unique and interesting string patterns.

I can make it--just lazy at the moment


Okay, please help me
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview