diff --git a/plugins/adminpanel.smx b/plugins/adminpanel.smx index 3011c53..21258e4 100644 Binary files a/plugins/adminpanel.smx and b/plugins/adminpanel.smx differ diff --git a/scripting/adminpanel.sp b/scripting/adminpanel.sp index 67494c0..26ff6e7 100644 --- a/scripting/adminpanel.sp +++ b/scripting/adminpanel.sp @@ -195,9 +195,10 @@ void SetupUserInDB(int client) { char country[128]; char region[128]; char ip[64]; - GetClientIP(client, ip, sizeof(ip)); - GeoipCountry(ip, country, sizeof(country)); - GeoipRegion(ip, region, sizeof(region)); + if(GetClientIP(client, ip, sizeof(ip))) { + GeoipCountry(ip, country, sizeof(country)); + GeoipRegion(ip, region, sizeof(region)); + } int time = GetTime(); char query[512];