[EngiN33R] Whitelist Script 
29 comments 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:
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.
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:
Code:
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.

Comments
29 commentsLog in!
You need to log in to be able to write comments!Log in

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


@
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.

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


@
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?

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


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 can't give with the RCon Passwort "IPbans, USGNban, Nickname ban.
it's cool, i will test it in the next time

@
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:
from the script. To ensure security from hackers you could use
Random RCon Pass Generator (16) if you want. I'll PM you what to add, how and where to add it to make a say command later.
@
Apache uwu: Agreed, I'll probably implement it with the next update.

Code:
1
addhook("rcon","editlist",10000)
from the script. To ensure security from hackers you could use


@
