Forum

> > CS2D > Scripts > Auto ban for advertising ip
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Auto ban for advertising ip

24 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Auto ban for advertising ip

dizziness
User Off Offline

Zitieren
user Cure Pikachu hat geschrieben
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

alt Re: Auto ban for advertising ip

dizziness
User Off Offline

Zitieren
user DannyDeth hat geschrieben
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

alt Re: Auto ban for advertising ip

Apache uwu
User Off Offline

Zitieren
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

alt Re: Auto ban for advertising ip

dizziness
User Off Offline

Zitieren
user Apache uwu hat geschrieben
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
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht