Raised This Month: $51 Target: $400
 12% 

Check name and kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pastuh
Member
Join Date: Dec 2005
Location: Lithuania
Old 05-27-2007 , 13:08   Check name and kick
Reply With Quote #1

Who can create plugin..
Checking players names (from .txt file) who trying join in server. If player name is not registered, he is kicking and writing message in console.

How i want..
Example:
All registered names is located in:
addons/amxmodx/reg in nicks.txt

Listed name is:
"Jonas" "password"
"Petras" "password"
"Kestas" "password"

Plugin checking only NAME. And if in nicks.txt not exists that nick..
He is kicked... With message: You are not registered. Register for free: bla bla

Thx.
pastuh is offline
Send a message via Skype™ to pastuh
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-27-2007 , 14:02   Re: Check name and kick
Reply With Quote #2

You can do this with users.ini after changing amx_mode. To change the kick message edit NO_ENTRY in data/lang/admin.txt. Remember flag 'z' is no access.
Lee is offline
pastuh
Member
Join Date: Dec 2005
Location: Lithuania
Old 05-28-2007 , 10:14   Re: Check name and kick
Reply With Quote #3

Emm... how change?
U mean change only lang file?..
I dont want give for all players B (slot)..

I want plugin who checking automatic names.. who are listed in nicks.txt without any permission, not in user.ini
pastuh is offline
Send a message via Skype™ to pastuh
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-28-2007 , 12:41   Re: Check name and kick
Reply With Quote #4

If only you would have read the files you have obviously already edited. Names listed in users.ini with flag z (not "b") don't have any special access and so there would be no difference if they weren't entered into the file at all..

users.ini

Code:
; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)
Clearly, amx_mode 2 will achieve what you desire after editing the language file as explained above.

amxx.cfg

Code:
// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
amx_mode 1
For example:

Code:
;without password
"RegisteredName" "" "z" "e"
;with password
"RegisteredName" "password" "z" "a"

Last edited by Lee; 05-28-2007 at 12:46.
Lee is offline
pastuh
Member
Join Date: Dec 2005
Location: Lithuania
Old 05-29-2007 , 08:43   Re: Check name and kick
Reply With Quote #5

Thx man!
U are best
pastuh is offline
Send a message via Skype™ to pastuh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode