Raised This Month: $299 Target: $400
 74% 

Module special geoip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ametit2021
AlliedModders Donor
Join Date: Nov 2021
Location: Romania
Old 01-05-2022 , 03:57   Module special geoip
Reply With Quote #1

Hello, where can I get this special_geoip_amxx_i386.so
I kept searching on google and nothing

Module "cstrike/addons/amxmodx/modules/special_geoip_amxx_i386.so" failed to load
thanks
ametit2021 is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 01-05-2022 , 14:49   Re: Module special geoip
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=194336

Quote:
Originally Posted by ametit2021 View Post
I kept searching on google and nothing
If you say so...
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
ametit2021
AlliedModders Donor
Join Date: Nov 2021
Location: Romania
Old 01-10-2022 , 03:50   Re: Module special geoip
Reply With Quote #3

L 01/10/2022 - 08:43:40: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/special_geoip_amxx_i386.so")
L 01/10/2022 - 08:43:40: [GEOIP] Database info: GeoLite2 Country database 2.0
L 01/10/2022 - 08:43:40: -------- Mapchange to de_dust2 --------
L 01/10/2022 - 08:43:40: [AMXX] Plugin "evidenta.amxx" failed to load: Module/Library "special_geoip" required for plugin. Check modules.ini.
not working special_geoip_mm_i386.so
it asks me in modules not in metamod
I renamed it but the same thing
ametit2021 is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 01-10-2022 , 07:06   Re: Module special geoip
Reply With Quote #4

Post meta list, amxx version and amxx plugins output
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 01-10-2022 at 07:06.
Shadows Adi is offline
ametit2021
AlliedModders Donor
Join Date: Nov 2021
Location: Romania
Old 01-11-2022 , 02:56   Re: Module special geoip
Reply With Quote #5

Code:
linux addons/reunion/reunion_mm_i386.so
linux addons/reunion/reauthcheck_mm_i386.so
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux addons/whblocker/whblocker_mm_i386.so
linux addons/rechecker/rechecker_mm_i386.so
linux addons/resemiclip/resemiclip_mm_i386.so
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <sqlx>
#include <special_geoip>

#define PLUGIN "Evidenta"
#define VERSION "1.1"
#define AUTHOR "Author"

#define szHost "ip"
#define szUser "name"
#define szPass "pass"
#define szDb "name"



new Handle:g_SqlTuple
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	g_SqlTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDb, 10)

}



public client_connect(id){
	if(is_user_bot(id)){
		server_cmd("kick #%d", id)
		return PLUGIN_HANDLED
	}
	inregistrare(id)
	
	static sql[256]
	// --------------- Preluare IP -----------------
	//new szIp[32];
	//get_user_ip (id, szIp, charsmax(szIp), 1);
	//new Country[32];
	//geoip_country(szIp, Country, charsmax(Country)); 
	//new country[33];
	//new ip[32];
	//get_user_ip( id, ip, charsmax( ip ));
	//geoip_country( ip, country, charsmax( country ) ); 
	
	
	static Name[64], ip[64], Country[64], City[64], AreaCode[64];
	get_user_ip(id, ip, 63, 1);
	get_user_name(id, Name, 63);
	GeoipInfo(ip, GI_Country, Country, charsmax(Country));
	GeoipInfo(ip, GI_City, City, 63);
	GeoipInfo(ip, GI_CountryCode, AreaCode, charsmax(AreaCode));
	// -------------- Preluare Data -----------------
	static preluare_an[5],time_an;
	static preluare_luna[3],time_luna;
	static preluare_zi[3],time_zi;
	static preluare_ora[3],time_ora;
	static preluare_minute[3],time_minute;
	static preluare_secunde[3],time_secunde;
	get_time("%Y", preluare_an, 4);
	get_time("%m", preluare_luna, 2);
	get_time("%d", preluare_zi, 2);
	get_time("%H", preluare_ora, 2);
	get_time("%M", preluare_minute, 2);
	get_time("%S", preluare_secunde, 2);
	time_an = str_to_num(preluare_an);
	time_luna = str_to_num(preluare_luna);
	time_zi = str_to_num(preluare_zi);
	time_ora = str_to_num(preluare_ora);
	time_minute = str_to_num(preluare_minute);
	time_secunde = str_to_num(preluare_secunde);
	
	formatex(sql, charsmax(sql), "INSERT INTO `listreal` (`value`, `ip`, `ctry`, `value2`,`data`) VALUES ('%d', '%d', '%d', '%d', '%d', '%d', '%s', 'cs', '%s', '%s', '%s'); ",time_an, time_luna, time_zi, time_ora, time_minute, time_secunde, ip, Name, Country, AreaCode);
	SQL_ThreadQuery(g_SqlTuple, "IgnoreHandle", sql)
	
	return PLUGIN_CONTINUE
}
public IgnoreHandle(FailState, Handle:Query, szError[], Errcode)
{
	QueryStatus(FailState, szError, Errcode)
	new DataNum
	while(SQL_MoreResults(Query))
	{
		DataNum = SQL_ReadResult(Query,0)
		server_print("zomg, some data: %s",DataNum)
		SQL_NextRow(Query)
	}
	SQL_FreeHandle(Query);
	
	return PLUGIN_HANDLED;
}

public client_putinserver(id){
	if(is_user_bot(id)){
		server_cmd("kick #%d", id)
		return PLUGIN_HANDLED
	}

	set_task(3.0, "inregistrare", id)
	
	return PLUGIN_CONTINUE
}

public inregistrare(id){
	
	return PLUGIN_CONTINUE
}


public QueryStatus(FailState, szError[], Errcode){
	
	static szDate[32], error[512]
	
	get_time("%d.%m.%y - %H:%M:%S", szDate, 31)
	
	if(FailState == TQUERY_CONNECT_FAILED){
		formatex(error, charsmax(error), "[MYSQL CONNECT ERROR] - [%s] - MySQL: %s | Errcode: %d^n", szDate, szError, Errcode)
		write_file("addons/amxmodx/logs/mysql_log.log", error, -1)
		
		server_print("A aparut o eroare ! Info in logs !")
	}
	else if(FailState == TQUERY_QUERY_FAILED){
		formatex(error, charsmax(error), "[MYSQL QUERY ERROR] - [%s] - MySQL: %s | Errcode: %d^n", szDate, szError, Errcode)
		write_file("addons/amxmodx/logs/mysql_log.log", error, -1)
		
		server_print("A aparut o eroare ! Info in logs !")
	}
	else if(Errcode){
		formatex(error, charsmax(error), "[MYSQL ERROR CODE] - [%s] - MySQL: %s | Errcode: %d^n", szDate, szError, Errcode)
		write_file("addons/amxmodx/logs/mysql_log.log", error, -1)
		
		server_print("A aparut o eroare ! Info in logs !")
	}
	
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
ametit2021 is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: United States
Old 01-12-2022 , 00:55   Re: Module special geoip
Reply With Quote #6

Quote:
Originally Posted by ametit2021 View Post
Code:
linux addons/reunion/reunion_mm_i386.so
linux addons/reunion/reauthcheck_mm_i386.so
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux addons/whblocker/whblocker_mm_i386.so
linux addons/rechecker/rechecker_mm_i386.so
linux addons/resemiclip/resemiclip_mm_i386.so
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <sqlx>
#include <special_geoip>

#define PLUGIN "Evidenta"
#define VERSION "1.1"
#define AUTHOR "Author"

#define szHost "ip"
#define szUser "name"
#define szPass "pass"
#define szDb "name"



new Handle:g_SqlTuple
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	g_SqlTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDb, 10)

}



public client_connect(id){
	if(is_user_bot(id)){
		server_cmd("kick #%d", id)
		return PLUGIN_HANDLED
	}
	inregistrare(id)
	
	static sql[256]
	// --------------- Preluare IP -----------------
	//new szIp[32];
	//get_user_ip (id, szIp, charsmax(szIp), 1);
	//new Country[32];
	//geoip_country(szIp, Country, charsmax(Country)); 
	//new country[33];
	//new ip[32];
	//get_user_ip( id, ip, charsmax( ip ));
	//geoip_country( ip, country, charsmax( country ) ); 
	
	
	static Name[64], ip[64], Country[64], City[64], AreaCode[64];
	get_user_ip(id, ip, 63, 1);
	get_user_name(id, Name, 63);
	GeoipInfo(ip, GI_Country, Country, charsmax(Country));
	GeoipInfo(ip, GI_City, City, 63);
	GeoipInfo(ip, GI_CountryCode, AreaCode, charsmax(AreaCode));
	// -------------- Preluare Data -----------------
	static preluare_an[5],time_an;
	static preluare_luna[3],time_luna;
	static preluare_zi[3],time_zi;
	static preluare_ora[3],time_ora;
	static preluare_minute[3],time_minute;
	static preluare_secunde[3],time_secunde;
	get_time("%Y", preluare_an, 4);
	get_time("%m", preluare_luna, 2);
	get_time("%d", preluare_zi, 2);
	get_time("%H", preluare_ora, 2);
	get_time("%M", preluare_minute, 2);
	get_time("%S", preluare_secunde, 2);
	time_an = str_to_num(preluare_an);
	time_luna = str_to_num(preluare_luna);
	time_zi = str_to_num(preluare_zi);
	time_ora = str_to_num(preluare_ora);
	time_minute = str_to_num(preluare_minute);
	time_secunde = str_to_num(preluare_secunde);
	
	formatex(sql, charsmax(sql), "INSERT INTO `listreal` (`value`, `ip`, `ctry`, `value2`,`data`) VALUES ('%d', '%d', '%d', '%d', '%d', '%d', '%s', 'cs', '%s', '%s', '%s'); ",time_an, time_luna, time_zi, time_ora, time_minute, time_secunde, ip, Name, Country, AreaCode);
	SQL_ThreadQuery(g_SqlTuple, "IgnoreHandle", sql)
	
	return PLUGIN_CONTINUE
}
public IgnoreHandle(FailState, Handle:Query, szError[], Errcode)
{
	QueryStatus(FailState, szError, Errcode)
	new DataNum
	while(SQL_MoreResults(Query))
	{
		DataNum = SQL_ReadResult(Query,0)
		server_print("zomg, some data: %s",DataNum)
		SQL_NextRow(Query)
	}
	SQL_FreeHandle(Query);
	
	return PLUGIN_HANDLED;
}

public client_putinserver(id){
	if(is_user_bot(id)){
		server_cmd("kick #%d", id)
		return PLUGIN_HANDLED
	}

	set_task(3.0, "inregistrare", id)
	
	return PLUGIN_CONTINUE
}

public inregistrare(id){
	
	return PLUGIN_CONTINUE
}


public QueryStatus(FailState, szError[], Errcode){
	
	static szDate[32], error[512]
	
	get_time("%d.%m.%y - %H:%M:%S", szDate, 31)
	
	if(FailState == TQUERY_CONNECT_FAILED){
		formatex(error, charsmax(error), "[MYSQL CONNECT ERROR] - [%s] - MySQL: %s | Errcode: %d^n", szDate, szError, Errcode)
		write_file("addons/amxmodx/logs/mysql_log.log", error, -1)
		
		server_print("A aparut o eroare ! Info in logs !")
	}
	else if(FailState == TQUERY_QUERY_FAILED){
		formatex(error, charsmax(error), "[MYSQL QUERY ERROR] - [%s] - MySQL: %s | Errcode: %d^n", szDate, szError, Errcode)
		write_file("addons/amxmodx/logs/mysql_log.log", error, -1)
		
		server_print("A aparut o eroare ! Info in logs !")
	}
	else if(Errcode){
		formatex(error, charsmax(error), "[MYSQL ERROR CODE] - [%s] - MySQL: %s | Errcode: %d^n", szDate, szError, Errcode)
		write_file("addons/amxmodx/logs/mysql_log.log", error, -1)
		
		server_print("A aparut o eroare ! Info in logs !")
	}
	
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Here's what I'd use.
Code:
#include <amxmodx> #include <sqlx> #define MYSQL_HOST "" #define MYSQL_USER "" #define MYSQL_PASSWORD "" #define MYSQL_DATABASE "" #define MYSQL_TABLE "" new Handle:MYSQL_CONNECTION new ip[MAX_PLAYERS + 1][MAX_PLAYERS] new bool: player[MAX_PLAYERS + 1] public plugin_init(){     set_task(1.0, "MYSQL_Init") } public MYSQL_Init(){     MYSQL_CONNECTION = SQL_MakeDbTuple(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE)     new query[256];     formatex(query, charsmax(query),         "CREATE TABLE IF NOT EXISTS `%s` (\             `id` INT(4) NOT NULL AUTO_INCREMENT,\             `ip` VARCHAR(32) NOT NULL,\             `date` VARCHAR(32) NOT NULL,\             PRIMARY KEY (`id`)\             UNIQUE (`ip`)\         );", MYSQL_TABLE)     SQL_ThreadQuery(MYSQL_CONNECTION, "IgnoredOutput", query); } public client_putinserver(id){     player[id] = bool: (!is_user_bot(id) && !is_user_hltv(id))     if (player[id]) {         new data[2], query[128]         data[0] = id; data[1] = 0         get_user_ip(id, ip[id], charsmax(ip[]), true)         formatex(query, charsmax(query), "SELECT * FROM `%s` WHERE `ip` = '%s';", MYSQL_TABLE, ip[id])         SQL_ThreadQuery(MYSQL_CONNECTION, "DataOutput", query, data, sizeof(data))     } } public DataOutput(failState, Handle:query, error[], errNum, data[]){     new id = data[0]     if(is_user_connected(id)){         if(!SQL_NumResults(query)){             new query[128];             formatex(query, charsmax(query), "INSERT INTO `%s` VALUES(NULL, '%s', NOW());", MYSQL_TABLE, ip[id])             SQL_ThreadQuery(MYSQL_CONNECTION, "IgnoredOutput", query);         }     } } public client_disconnected(id){     if (player[id]) {         new query[128]         formatex(query, charsmax(query), "UPDATE `%s` SET `date` = NOW() WHERE ip = '%s';", MYSQL_TABLE, ip[id])         SQL_ThreadQuery(MYSQL_CONNECTION, "IgnoredOutput", query)     } } public IgnoredOutput(failState, Handle:query, const error[], errNum){     if(errNum) server_print(error) }

Last edited by bigdaddy424; 01-12-2022 at 00:56.
bigdaddy424 is offline
Reply


Thread Tools
Display Modes

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 22:42.


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