What is the problem you are having? Providing this makes it easier\faster for others to find your mistake. One major mistake I see is you are calling functions on the player in client_disconnect(); this should be never done because the player may already be gone at this point. You should cache the values from when they are called at client_putinserver() so they can safely be used at client_disconnect().
Try this (untested)
PHP Code:
#include <amxmodx>
#include <colorchat>
#include <geoip>
enum PlayerData
{
szName[ 32 ],
szAuthID[ 32 ],
szIP[ 16 ],
szCountry[ 46 ]
}
new PData[ 33 ][ PlayerData ];
public plugin_init()
{
register_plugin( "connecting info" , "1.0" , "you" );
}
public client_putinserver(id)
{
get_user_name( id , PData[ id ][ szName ] , 31 );
get_user_authid( id , PData[ id ][ szAuthID ] , 31);
get_user_ip( id , PData[ id ][ szIP ] , 15 , 1 );
geoip_country( PData[ id ][ szIP ] , PData[ id ][ szCountry ] , 45 );
ColorChat(0, GREY, "^x01**^x04%s ^x01[^x04%s^x01]^3 has connected from ^x01%s**", PData[ id ][ szName ] , PData[ id ][ szAuthID ] , PData[ id ][ szCountry ] );
}
public client_disconnect(id)
{
ColorChat(0, GREY, "^x01**^x04%s ^x01[^x04%s^x01]^3 has connected from ^x01%s**", PData[ id ][ szName ] , PData[ id ][ szAuthID ] , PData[ id ][ szCountry ] );
PData[ id ][ szName ][ 0 ] = EOS;
PData[ id ][ szAuthID ][ 0 ] = EOS;
PData[ id ][ szIP ][ 0 ] = EOS;
PData[ id ][ szCountry ][ 0 ] = EOS;
}
__________________