Данный плагин способен изменять
стандартные сообщения при подключении или отключении игроков. А так же
показывает, страну, город, стим айди игроков. Цвета сообщения настраиваются в конфиг-файле 'addons\sourcemod\data\cannounce_settings.txt' При разрешении администратора, игроки смогут сами устанавливать своё сообщение при подключении.
Требования к серверу: - GeoIpCity (имеется в архиве)
Cvar's команды:
sm_ca_connectdisplaytype - <1|0> if 1 then displays enhanced
connect message after admin check and allows the {PLAYERTYPE}
placeholder. If 0 displays enhanced connect message on client auth
(earlier) and disables the {PLAYERTYPE} placeholder sm_ca_disableclientmsgchange - prevent ALL clients from setting their own custom join message. sm_ca_showenhanced <1|0> - shows the enhanced player connect message from this plugin. sm_ca_showenhanceddisc <1|0> - shows the enhanced player disconnect message from this plugin. sm_ca_showstandard <1|0> - shows the standard player connect message. sm_ca_showstandarddisc <1|0> - shows the standard player disconnect message.
sm_ca_showenhancedadmins <1|0> - shows a different enhanced
connect/disconnect message to admins with the generic flag. Message
customised in /data/cannounce_settings.txt' sm_ca_autoallowmsg <1|0> - allows admins with the kick flag to always be able to set a custom join message. sm_ca_playsound <1|0> - if enabled, plays a sound on each player connect. sm_ca_playsoundfile - specifies sound file to play if sm_ca_playsound is enabled. sm_ca_playdiscsound <1|0> - if enabled, plays a sound on each player disconnect. sm_ca_playdiscsoundfile - specifies sound file to play if sm_ca_playdiscsound is enabled. sm_ca_mapstartnosound (float, defaults to 30.0) - specify time to play NO connect sounds after map start
Команды: sm_geolist - lists player(s) and their country.
sm_joinmsg [message] - (console command) player can use this to set
their custom join message (if allowed) or if no message provided will
display their currently set message. sm_joinmsgon - allow target to set their custom join message. sm_joinmsgonid '' ''
- allows specified steam id to set a custom join message, useful if
player not in game. Player name is only an indicator so the file storing
the messages is human readable. sm_joinmsgoff - disallow target from having a custom join message. sm_joinmsgoffid '' - disallow specified steam id from having a custom join message. sm_setjoinmsg '' - set a custom join message for target, if they are allowed to have one. sm_setjoinmsgid '' '' - set a custom join message for steam id, if it is allowed sm_setjoinsnd '' - set a custom join sound for target, if they are allowed to have one. sm_setjoinsndid '' '' - set a custom join sound for steam id, if it is allowed sm_playsnd '' - plays sound file to all clients, useful for testing sound files before applying to a client.
Константы:
Сообщения о подключении/отключении игроков могут быть настроены в файле
'addons/sourcemod/data/cannounce_settings.txt' который создается при
первом загрузке сервера с данным плагином. Следующие константы вы можете
использовать для редактирования таких сообщений: {PLAYERNAME} - Players name {PLAYERTYPE} - Displays 'Admin' if the client has the generic admin flag, otherwise 'Player' {STEAMID} - Players steam ID {PLAYERCOUNTRY} - Players country eg. Australia {PLAYERCOUNTRYSHORT} - Players country code eg. AU {PLAYERIP} - IP address of player {DISC_REASON} - Enhanced disconnect message only. Displays player disconnect reason. {DEFAULT} - Following text will be in default color (usually white) {LIGHTGREEN} - Following text will be in light green color {GREEN} - Following text will be in green color {YELLOW} - Following text will be yellow (TF2 Only?)