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

Maxium Admin Users List In Users.ini


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[email protected]
New Member
Join Date: Jun 2004
Old 06-20-2004 , 12:52   Maxium Admin Users List In Users.ini
Reply With Quote #1

after research I found the amx support 64 admin in the uses list.
how can I modify the sma to let amx support more admin users?


below is the admin.sma content. anyone kindly help me ?


getAccess(id,name[],authid[],ip[], password[])
{
new index = -1
new result = 0
for(new i = 0; i < g_aNum; ++i) {
if (g_aFlags[i] & FLAG_AUTHID) {
if (equal(authid,g_aName[i])) {
index = i
break
}
}
else if (g_aFlags[i] & FLAG_IP) {
new c = strlen( g_aName[i] )
if ( g_aName[i][ c - 1 ] == '.' ) { /* check if this is not a xxx.xxx. format */
if ( equal( g_aName[i] , ip , c ) ) {
index = i
break
}
} /* in other case an IP must just match */
else if ( equal(ip,g_aName[i]) ){
index = i
break
}
}
else {
if (g_aFlags[i] & FLAG_TAG) {
if (contain(name,g_aName[i])!=-1){
index = i
break
}
}
else if (equal(name,g_aName[i])) {
index = i
..............
norikohxb@msn.com is offline
{NM}Jason
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Texas
Old 06-20-2004 , 12:59   Re: Maxium Admin Users List In Users.ini
Reply With Quote #2

Quote:
Originally Posted by [email protected]
after research I found the amx support 64 admin in the uses list.
how can I modify the sma to let amx support more admin users?


below is the admin.sma content. anyone kindly help me ?


getAccess(id,name[],authid[],ip[], password[])
{
new index = -1
new result = 0
for(new i = 0; i < g_aNum; ++i) {
if (g_aFlags[i] & FLAG_AUTHID) {
if (equal(authid,g_aName[i])) {
index = i
break
}
}
else if (g_aFlags[i] & FLAG_IP) {
new c = strlen( g_aName[i] )
if ( g_aName[i][ c - 1 ] == '.' ) { /* check if this is not a xxx.xxx. format */
if ( equal( g_aName[i] , ip , c ) ) {
index = i
break
}
} /* in other case an IP must just match */
else if ( equal(ip,g_aName[i]) ){
index = i
break
}
}
else {
if (g_aFlags[i] & FLAG_TAG) {
if (contain(name,g_aName[i])!=-1){
index = i
break
}
}
else if (equal(name,g_aName[i])) {
index = i
..............
why would you want too 64 is enuff ?
__________________
http://forums.alliedmods.net/showthr...396#post451396
Quote:
Originally Posted by BAILOPAN View Post
Shortly after posting that image, Jason crushed the truck into a ball with his hands, and tossed it over his shoulder.
{NM}Jason is offline
Send a message via ICQ to {NM}Jason Send a message via AIM to {NM}Jason Send a message via MSN to {NM}Jason Send a message via Yahoo to {NM}Jason
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-20-2004 , 16:29  
Reply With Quote #3

no
Dont look there
go into admin.sma and change the "#define MAX_ADMINS 64" to a higher number. Then recompile admin.sma
The higher you go, the more memory its gonna take up, so dont just change it to 99999999 because you can... I *think* There may be a maximum of 1024.. but seriously, will you ever need 1024 admins?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
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 19:40.


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