AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Case sensitivity ? (https://forums.alliedmods.net/showthread.php?t=89110)

TheNTW 04-02-2009 11:31

Case sensitivity ?
 
Hello,
I think this should be a common problem. Registered names in my server are ok, until a letters case is changed.
For instance if a player has a registered nick "Player" still a guy named "player" can connect w/o password...
How to disable this ?

ot_207 04-02-2009 11:39

Re: Case sensitivity ?
 
Quote:

Originally Posted by TheNTW (Post 795475)
Hello,
I think this should be a common problem. Registered names in my server are ok, until a letters case is changed.
For instance if a player has a registered nick "Player" still a guy named "player" can connect w/o password...
How to disable this ?

What amxx version are you using?

Hunter-Digital 04-02-2009 12:16

Re: Case sensitivity ?
 
In the latest amxx version in users.ini:
Quote:

; Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)
; k - name or tag is case sensitive. eg: if you set it so the name "Ham"
; is protected and case sensitive (flags "k" only), then anybody
; can use the names "haM", "HAM", "ham", etc, but not "Ham"
So by default (without "k" flag) the users are not case-sensitive.

You must be using older amxx version or the "k" flag.

anakin_cstrike 04-02-2009 12:46

Re: Case sensitivity ?
 
I think this belongs to Support forum.

ot_207 04-02-2009 14:35

Re: Case sensitivity ?
 
Quote:

Originally Posted by Hunter-Digital (Post 795502)
In the latest amxx version in users.ini:


So by default (without "k" flag) the users are not case-sensitive.

You must be using older amxx version or the "k" flag.

You will have this flag in amxx 1.80 and above.

TheNTW 04-03-2009 08:10

Re: Case sensitivity ?
 
Amx Version:
AMX Mod X 1.8.1.3746 (http://www.amxmodx.org


And no, not using K flag.

TheNTW 04-08-2009 04:55

Re: Case sensitivity ?
 
A little little *bump*

Hunter-Digital 04-08-2009 15:51

Re: Case sensitivity ?
 
somewhere in admin.sma from amxx 1.8+
PHP Code:

            if (Flags FLAG_CASE_SENSITIVE)
            {
                if (
Flags FLAG_TAG)
                {
                    if (
contain(nameAuthData) != -1)
                    {
                        
index i
                        g_CaseSensitiveName
[id] = true
                        
break
                    }
                }
                else if (
equal(nameAuthData))
                {
                    
index i
                    g_CaseSensitiveName
[id] = true
                    
break
                }
            }
            else
            {
                if (
Flags FLAG_TAG)
                {
                    if (
containi(nameAuthData) != -1)
                    {
                        
index i
                        
break
                    }
                }
                else if (
equali(nameAuthData))
                {
                    
index i
                    
break
                }
            } 

replace with

PHP Code:

            if (Flags FLAG_TAG)
            {
                if (
containi(nameAuthData) != -1)
                {
                    
index i
                    
break
                }
            }
            else if (
equali(nameAuthData))
            {
                
index i
                
break
            } 

... skips and disables the "k" flag forever... make a backup first :}

if THIS doesn't work either... I don't know WHAT are you doing there :lol:

Owyn 04-09-2009 08:49

Re: Case sensitivity ?
 
equali() should work, if not - problem is in your amxx

TheNTW 04-18-2009 07:28

Re: Case sensitivity ?
 
Will try equali()

Coul the problem be caused by ultimate_rslot ?


All times are GMT -4. The time now is 02:19.

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