Files

> > CS2D > Lua Scripts > [EngiN33R] Whitelist Script
Files overviewCS2D overviewLua Scripts overview

English [EngiN33R] Whitelist Script >

29 comments2 kb, 518 Downloads

old [EngiN33R] Whitelist Script

EngiN33R
Moderator Off Offline

I think this hasn't been done earlier and I think it's not in the vanilla version of CS2D - but I'm having a paranoia attack so tell me if it's implemented already somehow.

Anyway, with this script you can add IPs, USGN IDs and nicknames of people you want to allow joining your server - it reads all of those parameters equally. It also supports comments, both after an entry and as a separate line, marked by the number sign (#). Each entry should start on a new line.

You can edit the whitelist.cfg file in the sys directory or use the following console command in-game:
1
wadd <parameter>
Where parameter is an IP, a USGN ID or a nickname.

The implementation is probably messy, but don't worry about lag - it won't generate any.

Tell me if there are any bugs and I'll fix them ASAP.
Approved by Seekay

Download Download

2 kb, 518 Downloads

Comments

29 comments
Page
To the start Previous 1 2 Next To the start

Log in!

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

old

maPmaKer
User Off Offline

Great and useful.
I like it!

old

Draekon
User Off Offline

Nice and useful lua.
I like it!

old

Alpha Beta
User Off Offline

Useful.
I like it!

old

Big Bang Mafia
User Off Offline

i love it i will create a server with no password and then when somebody joins he get's kicked muaahha
I like it!

old

DeLiXx
User Off Offline

Its actually useless,because there is a add server pw possibility^^
but like it
I like it!

old

CineRuSS
User Off Offline

Nice Script my Friend

Usefull for my VIP Server
I like it!

old

Anti
User Off Offline

Low, but cool!
I like it!

old

pipex
User Off Offline

nice job,friend nice job, is perfect lua
I like it!

old

dizziness
User Off Offline

@user EngiN33R: Why you do not pm me how to make a whitelist command in my script? You already said that right? You want help me.. Please.
I like it!

old

EngiN33R
Moderator Off Offline

@user MikuAuahDark: An easier solution would be to remove the "rcon" addhook from my code, and thank you.

old

MikuAuahDark
User Off Offline

@user dizziness:
1
2
3
4
5
6
7
addhook("parse","blockrconcmd")
function blockrconcmd(command)
	if command:find("rcon")~=nil then
		return 2
	end
	return 0
end
@user EngiN33R: nice lua!
I like it!

old

Lubo
User Off Offline

realy good lua and helpful!
I like it!

old

dizziness
User Off Offline

@user EngiN33R: I do not need Random RCon Pass Generator, I already use some script that allow only me can use the rcon. I need the say command, and I want remove the rcon command, thats all can you pm me the script?
I like it!

old

EngiN33R
Moderator Off Offline

@user Anders4000: I know, yet you can see that many server programs for many games have whitelists as well as bans/passwords.

old Blacklist Script instead?

Anders4000
User Off Offline

Funno if made already, but I would see a Blacklist script more effective?
As user Krimhorn said, for private tournaments, we have the password security...

Nice anyway, you are a BOSS user EngiN33R!

EDIT: And now i realize. We have bans for that...
I like it!

old

Infinite Rain
Reviewer Off Offline

Easy, but nice tho.
I like it!

old

Misho
User Off Offline

it's like Private server
I like it!

old

Blunt
User Off Offline

Hmmpf

i can't give with the RCon Passwort "IPbans, USGNban, Nickname ban.

it's cool, i will test it in the next time
I like it!

old

EngiN33R
Moderator Off Offline

@user dizziness: Well, you can just execute this script alongside that one and it will work. To remove the rcon access to the wadd command, remove the following line:
1
addhook("rcon","editlist",10000)
from the script. To ensure security from hackers you could use file cs2d Random RCon Pass Generator if you want. I'll PM you what to add, how and where to add it to make a say command later.

@user Apache uwu: Agreed, I'll probably implement it with the next update.
To the start Previous 1 2 Next To the start