player country (geoip)
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:
|
Re: player country (geoip)
Try this
PHP Code:
|
Re: player country (geoip)
geoip_country it's deprecated in amxx 1.9.0.
|
Re: player country (geoip)
Show meta list.
And server operating system. |
Re: player country (geoip)
|
Re: player country (geoip)
Apparently it is working now.
|
Re: player country (geoip)
public client_putinserver ( Player )
{ if ( is_user_bot ( Player ) || is_user_hltv ( Player ) ) return; new Name [ 32 ], Country [ 32 ], IP [ 16 ]; get_user_name ( id, Name, charsmax ( Name ) ); get_user_ip ( id, IP, charsmax ( IP ), 1 ); geoip_country ( IP, Country, charsmax ( Country ) ); client_print ( 0, print_chat, "Player %s joined from %s", !strlen ( Country ) ? "N/A" : Country ); } cam simplify the strlen. |
Re: player country (geoip)
P.S. You may to not use get_user_name() when you have "%n" (AMXX >= 1.8.3).
Code:
|
Re: player country (geoip)
If I didn't misunderstand, this will output player name. Cool, I didn't know, thank you.
|
| All times are GMT -4. The time now is 07:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.