Raised This Month: $ Target: $400
 0% 

[HELP] use geoip to display city


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-18-2015 , 14:33   Re: [HELP] use geoip to display city
Reply With Quote #4

Quote:
Originally Posted by arvEL. View Post
when i add it the sv it crashed
It is not crashing mime. What you are using? (meta list, geoip version, version)

Code:
meta list
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm.dll    v1.8.2    ini  Start ANY
 [ 2] POD-Bot mm       RUN   -    podbot_mm.dll     vV3B22    ini  Chlvl ANY
 [ 3] MySQL            RUN   -    mysql_amxx.dll    v1.8.2    pl1  ANY   ANY
 [ 4] SQLite           RUN   -    sqlite_amxx.dll   v1.8.2    pl1  ANY   ANY
 [ 5] CStrike          RUN   -    cstrike_amxx.dll  v1.8.2    pl1  ANY   ANY
 [ 6] CSX              RUN   -    csx_amxx.dll      v1.8.2    pl1  ANY   ANY
 [ 7] GeoIP            RUN   -    geoip_amxx.dll    v1.2.0-m  pl1  ANY   ANY
 [ 8] Fun              RUN   -    fun_amxx.dll      v1.8.2    pl1  ANY   ANY
 [ 9] Engine           RUN   -    engine_amxx.dll   v1.8.2    pl1  ANY   ANY
 [10] FakeMeta         RUN   -    fakemeta_amxx.dl  v1.8.2    pl1  ANY   ANY
 [11] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.2    pl1  ANY   ANY
 [12] Orpheu           RUN   -    orpheu_amxx.dll   v2.6.3    pl1  ANY   ANY
12 plugins, 12 running

geoip version
  Database metadata
    Node count:    3179282
    Record size:   28 bits
    IP version:    IPv6
    Binary format: 2.0
    Build epoch:   1436355742 (2015-07-08 11:42:22 UTC)
    Type:          GeoLite2-City
    Languages:     de en es fr ja pt-BR ru zh-CN
    Description:
      en:   GeoLite2 City database

version
Protocol version 48
Exe version 1.0.0.3 (czero)
Exe build: 13:13:29 Aug 29 2013 (6153)
Code:
#include <amxmodx> #include <geoip> #include <colorchat>   public plugin_init() {     register_plugin("Join Country","1.0","<VeCo>") } public client_putinserver(id) {     static sz_name[32]     get_user_name(id,sz_name,charsmax(sz_name))     static sz_ip[32],     sz_city[32],     sz_country[32]     get_user_ip(id,sz_ip,charsmax(sz_ip),1)     geoip_country(sz_ip,sz_country,charsmax(sz_country))     geoip_city(sz_ip,sz_city,charsmax(sz_city))     ColorChat(0,GREY,"^1Player^4 %s^1 from^3 %s/%s^1 has joined the game!",sz_name,sz_country, sz_city) }

Last edited by addons_zz; 12-18-2015 at 14:36. Reason: spelling fixes and new better info
addons_zz is offline
 



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 18:12.


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