AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin Name getting access problem (https://forums.alliedmods.net/showthread.php?t=47629)

user-cfg 11-22-2006 16:59

Admin Name getting access problem
 
Sorry, but i searched for this nearly 3 hours before posting. I'm sure this is solved, but i couldn't find the code. Anyway, here's my problem: in the users.ini file i have admins given by name. I want to set amxx to give them access not by there exact nick, but by a nick that contains the name from users.ini.
Example - In users.ini I have: "loopback" "" "abcdefghijklmnopqrstu" "a"
I want him to be granted access also when he connects with a name like "loopback is Godlike" or "theloopback" and so on... As far as i know...editing admin.sma is the key...but how? :D :shock: 10x, sorry 4 the ambiguous explanation of the problem and for the spelling/topic mistakes :D

[ --<-@ ] Black Rose 11-22-2006 17:03

Re: Admin Name getting access problem
 
admin.sma, line 558:
Code:
else if (equal(name, g_aName[i]))
change equal to containi

user-cfg 11-27-2006 06:26

Re: Admin Name getting access problem
 
editing admin.amxx?? i'm not really in the scripting bussiness, i just know how to edit .sma files and compile them after. anyway, that's not really a problem, the problem is that line 843 is not present in my admin.sma file. admin.sma contains only 702 lines. sorry 4 repeating: admin should be contained in the nick that the user has on the server and should be case insensitive (EG: name in users.ini : "modder" , name on server with working admin access: "ModDer @ home"). Thanks a lot, keep up the good work here & waiting 4 reply when anyone has time 4 this. :up:

dutchmeat 11-27-2006 08:21

Re: Admin Name getting access problem
 
just search

Code:
equal(name,


in your admin.sma, and change that to:


Code:
containi(name,


you can just use the replace function of notepad.

The Specialist 11-27-2006 08:32

Re: Admin Name getting access problem
 
NotePad is about as usefull as a piece of note book paper with a broken pencil lol. :wink:

dutchmeat 11-27-2006 08:37

Re: Admin Name getting access problem
 
Quote:

Originally Posted by The Specialist (Post 407835)
NotePad is about as usefull as a piece of note book paper with a broken pencil lol. :wink:

Or you could just use a note book paper with a broken pencil instead, or maybe 'Crymson Editor' :)

[ --<-@ ] Black Rose 11-27-2006 10:34

Re: Admin Name getting access problem
 
Quote:

Originally Posted by user-cfg (Post 407807)
editing admin.amxx?? i'm not really in the scripting bussiness, i just know how to edit .sma files and compile them after. anyway, that's not really a problem, the problem is that line 843 is not present in my admin.sma file. admin.sma contains only 702 lines. sorry 4 repeating: admin should be contained in the nick that the user has on the server and should be case insensitive (EG: name in users.ini : "modder" , name on server with working admin access: "ModDer @ home"). Thanks a lot, keep up the good work here & waiting 4 reply when anyone has time 4 this. :up:

I meant .sma, not .amxx. Sry.

user-cfg 11-27-2006 15:17

Re: Admin Name getting access problem
 
doesn't work.. :roll: the only thing that i managed to acomplish is reserving any name (all the names/any name that anyone has :D ) :oops: crashed all my admins with this. any name (in the users.ini file or not in there) is dropped a reserved nickname. help pls?

[ --<-@ ] Black Rose 11-28-2006 00:49

Re: Admin Name getting access problem
 
spacespacespacespace

user-cfg 11-28-2006 16:06

Re: Admin Name getting access problem
 
downloaded the plugin that u posted, same thing... i join the server with any random nick (from or not from users.ini) & i get the message "dropped due to slot reservation". can the problem be related to amxmodx.cfg?


All times are GMT -4. The time now is 06:51.

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