Raised This Month: $ Target: $400
 0% 

Chat Manager [Admin Prefix & Color Chat]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-05-2019 , 08:40   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #11

Try the /country command from this plugin and see if it works:

PHP Code:
#include <amxmodx>
#include <geoip>

#if !defined geoip_country_ex
    #define geoip_country_ex geoip_country
#endif

public plugin_init()
{
    
register_plugin("GeoIP Test""1.0""OciXCrom")
    
register_clcmd("say /country""Cmd_Country")
}

public 
Cmd_Country(id)
{
    new 
szCountry[45], szIP[32]
    
get_user_ip(idszIPcharsmax(szIP))
    
geoip_country_ex(szIPszCountrycharsmax(szCountry))
    
client_print(idprint_chat"Your country is %s."szCountry)
    return 
PLUGIN_HANDLED

If it doesn't work as well, the problem is in GeoIP. Tell me which AMXX version you're using.
__________________

Last edited by OciXCrom; 01-05-2019 at 08:41.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 


Thread Tools
Display Modes

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 10:01.


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