Nic nadzwyczajnego:/
#include <amxmodx>
#include <amxmisc>
#include <netdb>
#define PLUGIN "Konta Neo"
#define VERSION "1.3"
#define AUTHOR "Sn!!fer"
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)
public client_authorized(id)
{
new steamid[40]
get_user_authid (id, steamid,39)
if(get_user_flags(id) & ADMIN_RESERVATION) return PLUGIN_CONTINUE
if(access(id,ADMIN_LEVEL_H) && access(id,ADMIN_USER))
{
remove_user_flags(id,ADMIN_LEVEL_H)
return PLUGIN_CONTINUE
}
if(equal(steamid[6], "ID_LAN"))
{
new ip[16], host[50]
get_user_ip(id,ip , 15 , 1)
netdb_gethostbyaddr(ip,host,49)
if(contain(host,"adsl") != -1 || contain(host,"dynamic") != -1)
{
new name[32]
get_user_name(id,name,31)
client_print(id, print_console,"-------------------------Polish-------------------------")
client_print(id, print_console,"[BANNEO]Masz zmienne IP musisz zalozyc konto Neo aby moc grac!")
client_print(id, print_console,"[BANNEO]Wejdź na XXXXXX")
client_print(id, print_console,"[BANNEO]Zaloz konto Neo - XXXXX")
client_print(id, print_console,"[BANNEO]Nastepnie graj spokojnie na serwerach Anty-Neo")
client_print(id, print_console,"[BANNEO]Twoje IP: %s",ip)
client_print(id, print_console,"[BANNEO]Twoj Nick: %s",name)
client_print(id, print_console,"-------------------------English-------------------------")
client_print(id, print_console,"[BANNEO]You have dynamic IP you have to assume that the power of your Neo to play!")
client_print(id, print_console,"[BANNEO]Go to XXXXXpl")
client_print(id, print_console,"[BANNEO]Sign Up Neo - XXXX")
client_print(id, print_console,"[BANNEO]Then play quietly on servers Anti-Neo")
client_print(id, print_console,"[BANNEO]Your IP: %s",ip)
client_print(id, print_console,"[BANNEO]Your Nickname: %s",name)
set_task(1.0,"wykop",id)
return PLUGIN_CONTINUE
}
}
return PLUGIN_CONTINUE
}
public wykop(id)
{
new reason[30]
format(reason,29,"[BANNEO]Wejdz na XXXXX.pl")
server_cmd("kick #%d %s",get_user_userid(id), reason)
}