Shadowless
Пользователь
																			  
		- Регистрация
- 24 Фев 2019
- Сообщения
- 237
- Симпатии
- 4
- Пол
- Мужской
HERE is ℂ  for AMX 1.8.3+ - AlliedModders
i want to add IP in msg
for example
NICK : (IP HERE) STEAM_0:0:00000 from Country appeared on , radar......
	
	
		
			
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
		
	
								i want to add IP in msg
for example
NICK : (IP HERE) STEAM_0:0:00000 from Country appeared on , radar......
			
				C++:
			
		
		
		#include <amxmodx>
#include <amxmisc>
#include <geoip>
#define PLUGIN "TrafficID"
#define VERSION "A"
#define AUTHOR "SPiNX"
new name[33],ip[32], authid[33], city[64], country[33], region[64]
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
        if (is_user_bot(id)) return;
        if (is_user_hltv(id)) return;
        get_user_name(id,name,32), get_user_ip(id,ip,31,0), get_user_authid(id,authid,32), geoip_city(ip,city,64,1), geoip_country_ex(ip,country,32,2), geoip_region_name(ip,region, 64,2);
        client_print_color(0,id, "^x03%s^x01 ^x04%s^x01 from ^x04%s^x01 appeared on ^x04%s^x01 , ^x04%s^x01 radar.", name, authid, country, city, region);
        if ( cstrike_running() ) return;
        client_print(0,print_chat,"%s %s from %s appeared on %s, %s radar.", name, authid, country, city, region);
        log_amx("Name: %s, ID: %s, Country: %s, City: %s, Region: %s joined.", name, authid, country, city, region);
}
public client_disconnected(id)
{
        if (is_user_bot(id)) return;
        if (is_user_hltv(id)) return;
        get_user_name(id,name,32), get_user_ip(id,ip,31,0), get_user_authid(id,authid,32), geoip_city(ip,city,64,1), geoip_country_ex(ip,country,32,2), geoip_region_name(ip,region, 64,2);
        client_print_color(0,id, "^x03%s^x01 ^x04%s^x01 from ^x04%s^x01 disappeared on ^x04%s^x01, ^x04%s^x01 radar.", name, authid, country, city, region);
        if ( cstrike_running() ) return;
        client_print(0,print_chat,"%s %s from %s disappeared on %s, %s radar.", name, authid, country, city, region);
} 
				 
 
		