RU
RU
UA
EN
PL
ГЛАВНАЯ
УСЛУГИ
ПЛАГИНЫ
КАРТЫ
REBUY
SCANMON
CASSA
SALE
ФОРУМ
МОНИТОР
HELP
КОНТАКТ
Главная
/
Plugins
/
connecting
connecting
Теги:
Скачать плагины cs
Серверные
графическое отображение connecta! Правда есть косяк ! Ботов будет этот плагин отвлекать от игры!!!
Компилятор: 1.8.2
789
Команды:
Кваров и команд нет
.sma / .sp
/* Join/Leave Message 1.2 by BigBaller Just shows a basic Tsay like message to all players when user is connecting, has established connection and disconnected from your server. Just upload into your amxx/plugins folder Add join_leave.amx in your amxx/plugins.ini Restart server or change map. ENJOY! *New, You are able to turn messages off and on using the cvar amx_join_leave 1 = On 0 = Off Plugin by default is 1 Change Log v 1.0 - Started with basic messages. v 1.1 - Created a cvar to disable messages (cvar is amx_join_leave 1|0) v 1.2 - Moved the messages up, they conflicted with plugins such as StatsX and PTB */ #include
public plugin_init() { register_plugin("Connecting Message","1.0","-=LaMeR=-") register_cvar("amx_join_message", "%name% is connecting.") register_cvar("amx_joined_message", "%name% is ready to play!") register_cvar("amx_leave_message", "%name% has disconnected.") register_cvar("amx_join_leave","1") } public client_connect(id){ new user[32], len user[0] = id len = get_user_name(id,user[1],31) set_task(2.0, "join_msg", 0, user,len + 2) return PLUGIN_CONTINUE } public client_putinserver(id){ new user[32], len user[0] = id len = get_user_name(id,user[1],31) set_task(2.0, "joined_msg", 0, user,len + 2) return PLUGIN_CONTINUE } public client_disconnect(id){ new user[32], len user[0] = id len = get_user_name(id, user[1], 31) set_task(2.0, "leave_msg", 0, user, len + 2) return PLUGIN_CONTINUE } public join_msg(user[]) { if (get_cvar_num("amx_join_leave")==0){ return PLUGIN_HANDLED } if (get_cvar_num("amx_join_leave")==1){ new message[192] get_cvar_string("amx_join_message", message, 191) replace(message, 191, "%name%", user[1]) set_hudmessage(0, 0, 255, 0.05, 0.45, 2, 1.5, 5.0) show_hudmessage(0, message) return PLUGIN_CONTINUE } return PLUGIN_CONTINUE } public joined_msg(user[]) { if (get_cvar_num("amx_join_leave")==0){ return PLUGIN_HANDLED } if (get_cvar_num("amx_join_leave")==1){ new message[192] get_cvar_string("amx_joined_message", message, 191) replace(message, 191, "%name%", user[1]) set_hudmessage(51, 51, 51, 0.05, 0.45, 2, 1.0, 5.0) show_hudmessage(0, message) return PLUGIN_CONTINUE } return PLUGIN_CONTINUE } public leave_msg(user[]) { if (get_cvar_num("amx_join_leave")==0){ return PLUGIN_HANDLED } if (get_cvar_num("amx_join_leave")==1){ new message[192] get_cvar_string("amx_leave_message", message, 191) replace(message, 191, "%name%", user[1]) set_hudmessage(255, 0, 0, 0.05, 0.45, 1, 1.0, 5.0) show_hudmessage(0, message) return PLUGIN_CONTINUE } return PLUGIN_CONTINUE }
Отправить
Загрузил
dvoenkin23gfg
2019-01-08 16:46:36
0
12
Установить на сервер
Скачать
Нет оплаченых серверов
Купить сервер CS 1.6
Купить сервер CS:GO
Купить сервер CSS v34
Подключить свой VDS к панели
Данная иконка означает, что плагин был проверен администрацией хостинга на тестовом сервере, и проблем с ним не было выявлено. Рекомендуем ставить исключительно проверенные плагины.
Плагин загружен на сервер, но проверка еще не была проведена.
CSHOST.COM.UA 2012-2025 Хостинг игровых серверов