Code
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
new g_URL
public plugin_init()
{
register_plugin("STEAM_ID_LAN KICK", "1.0", "SKAJIbnEJIb")
g_URL = register_cvar("sid_url", "http://makeserver.ru/skachat_counter_strike_16.html")
}
public client_putinserver(id)
{
new STEAM[32]
get_user_authid(id, STEAM, 31)
if (equal(STEAM, "STEAM_ID_LAN") || equal(STEAM, "VALVE_ID_LAN"))
set_task(5.0, "say_player", id)
}
public say_player(id)
{
if(is_user_connected(id))
{
new DownloadURL[64]
get_pcvar_string(g_URL, DownloadURL, 63)
ColorChat(id, RED, "^01[^04WARNING^01] ^03Ваша версия CS устарелая и кривая!")
ColorChat(id, RED, "^01[^04WARNING^01] ^03Скачать нормальную версию можно тут: ^04%s", DownloadURL)
ColorChat(id, RED, "^01[^04WARNING^01] Вы будете кикнуты через^03 15 секунд!")
set_task(15.0, "kick_player", id)
}
}
public kick_player(id)
{
if(is_user_connected(id))
{
new DownloadURL[64]
get_pcvar_string(g_URL, DownloadURL, 63)
client_print(id, print_console, "[WARNING] Ваша версия CS устарелая и кривая!")
client_print(id, print_console, "[WARNING] Скачать нормальную версию можно тут: %s", DownloadURL)
server_cmd("kick #%d ^"Old Version!^"", get_user_userid(id))
}
}