Raised This Month: $ Target: $400
 0% 

Add Admin IP Fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-18-2009 , 10:23   Add Admin IP Fix
Reply With Quote #1

Have you ever tried to add admin by IP address by console command "amx_addadmin"? Well, it doesn't work. It works like this be default:

E.g. if you're performing this command (player with that IP must be in server):
Code:
amx_addadmin 123.45.67.89 abcdefghijklmnopqrstu "" ip
It writes this (no matter SQL or not):
Quote:
"123.45.67.89:27005" "" "abcdefghijklmnopqrstu" "de"
Yes, it adds client's port that is unnecessary and fucks everything up. Here's the fix for it.

admin.sma line 254:
Code:
                        get_user_ip(player, auth, 32)

Code:
                        get_user_ip(player, auth, 32, 1)
Attached Files
File Type: sma Get Plugin or Get Source (admin.sma - 1150 views - 19.9 KB)
File Type: sma Get Plugin or Get Source (admin_sql.sma - 1046 views - 19.9 KB)
__________________
hleV is offline
 



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:14.


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