Raised This Month: $ Target: $400
 0% 

Admin Name getting access problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
user-cfg
Junior Member
Join Date: Nov 2006
Old 11-22-2006 , 16:59   Admin Name getting access problem
Reply With Quote #1

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? 10x, sorry 4 the ambiguous explanation of the problem and for the spelling/topic mistakes

Last edited by user-cfg; 11-22-2006 at 17:02.
user-cfg is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-22-2006 , 17:03   Re: Admin Name getting access problem
Reply With Quote #2

admin.sma, line 558:
Code:
else if (equal(name, g_aName[i]))
change equal to containi

Last edited by [ --<-@ ] Black Rose; 11-28-2006 at 00:53.
[ --<-@ ] Black Rose is offline
user-cfg
Junior Member
Join Date: Nov 2006
Old 11-27-2006 , 06:26   Re: Admin Name getting access problem
Reply With Quote #3

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.
user-cfg is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-27-2006 , 08:21   Re: Admin Name getting access problem
Reply With Quote #4

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.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-27-2006 , 08:32   Re: Admin Name getting access problem
Reply With Quote #5

NotePad is about as usefull as a piece of note book paper with a broken pencil lol.
The Specialist is offline
Send a message via AIM to The Specialist
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-27-2006 , 08:37   Re: Admin Name getting access problem
Reply With Quote #6

Quote:
Originally Posted by The Specialist View Post
NotePad is about as usefull as a piece of note book paper with a broken pencil lol.
Or you could just use a note book paper with a broken pencil instead, or maybe 'Crymson Editor'
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-27-2006 , 10:34   Re: Admin Name getting access problem
Reply With Quote #7

Quote:
Originally Posted by user-cfg View Post
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.
I meant .sma, not .amxx. Sry.
[ --<-@ ] Black Rose is offline
user-cfg
Junior Member
Join Date: Nov 2006
Old 11-27-2006 , 15:17   Re: Admin Name getting access problem
Reply With Quote #8

doesn't work.. the only thing that i managed to acomplish is reserving any name (all the names/any name that anyone has ) crashed all my admins with this. any name (in the users.ini file or not in there) is dropped a reserved nickname. help pls?
user-cfg is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-28-2006 , 00:49   Re: Admin Name getting access problem
Reply With Quote #9

spacespacespacespace

Last edited by [ --<-@ ] Black Rose; 05-01-2007 at 09:31.
[ --<-@ ] Black Rose is offline
user-cfg
Junior Member
Join Date: Nov 2006
Old 11-28-2006 , 16:06   Re: Admin Name getting access problem
Reply With Quote #10

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?
user-cfg is offline
Old 12-01-2006, 05:28
user-cfg
This message has been deleted by user-cfg.
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 16:35.


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