Raised This Month: $ Target: $400
 0% 

player country (geoip)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 12-16-2018 , 18:00   player country (geoip)
Reply With Quote #1

Hello, I'm trying to get player's country with geoip but it's not working, it's always returning 0. Besides, I'm using amxx 1.9.0 (latest)

Code:
public client_putinserver(this) {     if (is_user_bot(this))         return;     if (is_user_hltv(this))         return;     new szName[32], szCountry[32], szIp[32];     get_user_name(this, szName, charsmax(szName));     get_user_ip(this, szIp, charsmax(szIp), 1);     if (geoip_country_ex(szIp, szCountry, charsmax(szCountry)) == 0)         copy(szCountry, charsmax(szCountry), "N/A");     client_print(0, print_chat, "Player %s has connected (%s).", szName, szCountry); }
__________________









Last edited by CrazY.; 12-16-2018 at 18:05.
CrazY. 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 07:30.


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