Raised This Month: $ Target: $400
 0% 

[HELP] use geoip to display city


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-18-2015 , 12:38   [HELP] use geoip to display city
Reply With Quote #1

hi guys, i have this codes:

PHP 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[16],sz_country[20]
get_user_ip(id,sz_ip,charsmax(sz_ip),1)
geoip_country(sz_ip,sz_country,charsmax(sz_country))
ColorChat(0,GREY,"^1Player^4 %s^1 from^3 %s^1 has joined the game!",sz_name,sz_country)

here just display the country, i want it to display country and city
example:

Player [name] from [country / city] has joined the game!
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
 


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


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