Dateien

> > CS2D > Lua Scripts > [EngiN33R] Whitelist Script
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch [EngiN33R] Whitelist Script >

29 Kommentare2 kb, 491 Downloads

alt [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.
Zugelassen von Seekay

Download Download

2 kb, 491 Downloads

Kommentare

29 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

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

alt

maPmaKer
User Off Offline

Great and useful.
Ich mag es!

alt

Draekon
User Off Offline

Nice and useful lua.
Ich mag es!

alt

Alpha Beta
User Off Offline

Useful.
Ich mag es!

alt

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

alt

DeLiXx
User Off Offline

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

alt

CineRuSS
User Off Offline

Nice Script my Friend

Usefull for my VIP Server
Ich mag es!

alt

Anti
User Off Offline

Low, but cool!
Ich mag es!

alt

pipex
User Off Offline

nice job,friend nice job, is perfect lua
Ich mag es!

alt

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

alt

EngiN33R
Moderator Off Offline

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

alt

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

alt

Lubo
User Off Offline

realy good lua and helpful!
Ich mag es!

alt

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

alt

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.

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

alt

Infinite Rain
Reviewer Off Offline

Easy, but nice tho.
Ich mag es!

alt

Misho
User Off Offline

it's like Private server
Ich mag es!

alt

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

alt

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