new cvar_text_new_ip, text_new_ip[256]
new cvar_info_colors, info_color[3]
register_plugin("New Server Notice", "0.1", "Leo_[BH]")
cvar_text_new_ip = register_cvar("amx_new_ip_text", "Админ!^nЗакинь файл new_serv.cfg^nу папку configs!")
cvar_info_colors = register_cvar("amx_new_ip_info_color", "0 200 0")
set_task(5.4, "task_hud_info", 0, _, _, "b")
server_cmd("exec addons/amxmodx/configs/new_serv.cfg")
set_dhudmessage(info_color[0], info_color[1], info_color[2], -1.0, 0.01, 0, 0.0, 3.3, 1.2, 1.0)
show_dhudmessage(0, text_new_ip);
client_print(0, print_console, text_new_ip)
get_pcvar_string(cvar_text_new_ip, text_new_ip, charsmax(text_new_ip))
new szColor[12], szRed[4], szGreen[4], szBlue[4]
get_pcvar_string(cvar_info_colors, szColor, charsmax(szColor))
parse(szColor, szRed, charsmax(szRed), szGreen, charsmax(szGreen), szBlue, charsmax(szBlue))
info_color[0] = clamp(str_to_num(szRed), 0, 255)
info_color[1] = clamp(str_to_num(szGreen), 0, 255)
info_color[2] = clamp(str_to_num(szBlue), 0, 255)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Автор плагина: Leo_[BH]
// Написание плагинов под заказ: http://vk.com/cs_rain
// Создание сборки сервера под ключ: https://goo.gl/forms/GIyvSAw1IJ48szDn2
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -