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)