[Half-Life AMXX] / include / geoip.inc Repository:
ViewVC logotype

View of /include/geoip.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Tue Oct 30 09:08:11 2007 UTC (16 years, 6 months ago) by ian
File size: 753 byte(s)
/* 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

#if AMXX_VERSION_NUM >= 175
 #pragma reqlib geoip
 #if !defined AMXMODX_NOAUTOLOAD
  #pragma loadlib geoip
 #endif
#else
 #pragma library geoip
#endif

//IP address can contain ports, the ports will be stripped out

//get a two character country code (eg US, CA etc)
native geoip_code2(const ip[], ccode[3]);

//get a three character country code (eg USA, cAN etc)
native geoip_code3(const ip[], result[4]);

//get a full country name.  max name is 45 chars
native geoip_country(const ip[], result[], len=45);

Contact
ViewVC Help
Powered by ViewVC 1.0.4