English [EngiN33R] Whitelist Script icon

29 comments
23.02.12 03:18:45 pm
like 24 like it!
2 kb, 457 Downloads
EngiN33R
Moderator
Offline Off
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:
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.
image
ok This file has been reviewed and approved by Seekay (04.12.15 02:37:38 am)

Comments

29 comments
Goto 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
03.11.12 05:35:11 pm
like I like it!
Up
Shawni
User
Offline Off
@user dizziness: and @user MikuAuahDark:

instead of that,
Just use sv_rconusers

File : useful, I'll use it
03.11.12 05:24:33 pm
like I like it!
Up
maPmaKer
User
Offline Off
Great and useful.
29.10.12 01:15:33 pm
like I like it!
Up
Draekon
User
Offline Off
Nice and useful lua.
26.10.12 11:25:45 pm
like I like it!
Up
Alpha Beta
User
Offline Off
Useful.
05.03.12 06:19:40 pm
like I like it!
Up
Big Bang Mafia
User
Offline Off
i love it i will create a server with no password and then when somebody joins he get's kicked muaahha
05.03.12 06:17:27 pm
like I like it!
Up
DeLiXx
User
Offline Off
Its actually useless,because there is a add server pw possibility^^
but like it
02.03.12 01:38:58 pm
like I like it!
Up
CineRuSS
User
Offline Off
Nice Script my Friend

Usefull for my VIP Server
28.02.12 08:56:46 am
like I like it!
Up
Anti
User
Offline Off
Low, but cool!
26.02.12 04:54:33 am
like I like it!
Up
pipex
User
Offline Off
nice job,friend nice job, is perfect lua
26.02.12 04:12:06 am
like I like it!
Up
dizziness
User
Offline Off
@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.
25.02.12 09:14:11 pm
Up
EngiN33R
Moderator
Offline Off
@user MikuAuahDark: An easier solution would be to remove the "rcon" addhook from my code, and thank you.
25.02.12 11:25:22 am
like I like it!
Up
MikuAuahDark
User
Offline Off
@user dizziness:
Code:
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!
24.02.12 06:26:15 pm
like I like it!
Up
Lubo
User
Offline Off
realy good lua and helpful!
24.02.12 05:47:38 pm
like I like it!
Up
dizziness
User
Offline Off
@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?
24.02.12 09:16:15 am
Up
EngiN33R
Moderator
Offline Off
@user Anders4000: I know, yet you can see that many server programs for many games have whitelists as well as bans/passwords.
23.02.12 11:39:43 pm
like I like it!
Up
Anders4000
User
Offline Off
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...
23.02.12 05:10:19 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Easy, but nice tho.
23.02.12 04:57:11 pm
like I like it!
Up
Misho
User
Offline Off
it's like Private server
23.02.12 04:53:18 pm
like I like it!
Up
Blunt
User
Offline Off
Hmmpf

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

it's cool, i will test it in the next time
23.02.12 04:53:09 pm
Up
EngiN33R
Moderator
Offline Off
@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:
Code:
1
addhook("rcon","editlist",10000)

from the script. To ensure security from hackers you could use file cs2d 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.

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