amxmodx/plugins/include/geoip.inc

23 lines
577 B
PHP
Raw Normal View History

2004-09-10 07:12:38 +04:00
/* GeoIP module functions for AMX Mod X
by David "BAILOPAN" Anderson
(C)Copyrighted under the GNU General Public License, Version 2
*/
#if defined geoip_included
#endinput
#endif
#define _geoip_included
2005-07-15 23:05:31 +04:00
#pragma library geoip
2004-09-10 07:12:38 +04:00
//IP address can contain ports, the ports will be stripped out
//get a two character country code (eg US, CA etc)
native geoip_code2(ip[], ccode[3]);
//get a three character country code (eg USA, cAN etc)
native geoip_code3(ip[], result[4]);
//get a full country name. max name is 45 chars
native geoip_country(ip[], result[], len=45);