Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Client Announcement
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
29.800 KB
Nov 22, 2024 @ 10:16am
Mar 21 @ 2:54am
6 Change Notes ( view )

Subscribe to download
Client Announcement

In 2 collections by skysky199
Script List
85 items
Script List <Improvement>
20 items
Description
--僅於區域/專用伺服器生效--
--Works on local/dedicated servers only.--

有玩家加入/進入/離開時 顯示訊息與播放聲音
※管理員看到的是不同的訊息
※想要看到國家 右轉SourceMod插件(cannounce[github.com] ←限專用伺服器)

Announce when a client is joining, has connected, and has disconnected.
※Messages printed to admins are different.
※Want to see the country? Use the SourceMod plugin instead. (cannounce[github.com] ←Dedicated servers only)

Setting file path:
\ems\clientannouncement\settings.tbl

設定說明:
Description of settings:
設定名
Setting's name
說明
Description
ConnectedSound
(Default: "ambient/alarms/klaxon1.wav")
DisconnectedSound
(Default: "ambient/alarms/perimeter_alarm.wav")
當玩家進入/離開時 播放聲音
"" = 關閉
Play sound when a client has connected and disconneted.
"" = disable.

※All sound can be found at
(path)\Left 4 Dead 2\left4dead2\sound.

===========================================================================

翻譯詞可自定義 (類似於SourceMod), 檔案位於\ems\translations\clientannouncement.tbl
所有可用的API 語言碼可在下面的網址找到

Translation phrases can be customized (like SourceMod), file is located at \ems\translations\clientannouncement.tbl
All valid API language code can be found at
https://partner.steamgames.com/doc/store/localization/languages

顏色代碼:
Color Codes:
Beige (default color) = "\x01" = "{default}"
Bright green = "\x03" = "{lightgreen}"
Orange = "\x04" = "{orange}"
Olive green = "\x05" = "{olive}"

特殊代號:
Special code name:
{SteamID}
Client's Steam ID.
玩家的 Steam ID
{IP}
Client's IP address.
(It’s not guaranteed to be real.)
玩家的 IP位址
(不保證是真實的)
{Language}
Client's language used in game.
玩家在遊戲中使用的語言
{Reason}
Client's reason for disconnecting.
玩家的離開原因

Default:
{
JoinMsg =
{
english = "Player \x03%s\x01 is joining the game."
tchinese = "玩家 \x03%s\x01 正在加入遊戲"
schinese = "玩家 \x03%s\x01 正在加入游戏"
}
ConnectMsg =
{
english = "Player \x03%s\x01 connected."
tchinese = "玩家 \x03%s\x01 已加入"
schinese = "玩家 \x03%s\x01 已加入"
}
DisconnectMsg =
{
english = "Player \x03%s\x01 disconnected.{Reason}"
tchinese = "玩家 \x03%s\x01 已離開 {Reason}"
schinese = "玩家 \x03%s\x01 已离开 {Reason}"
}

JoinMsgAdmin =
{
english = "Player \x03%s\x01 is joining the game. {SteamID}"
tchinese = "玩家 \x03%s\x01 正在加入遊戲 {SteamID}"
schinese = "玩家 \x03%s\x01 正在加入游戏 {SteamID}"
}
ConnectMsgAdmin =
{
english = "Player \x03%s\x01 connected. {SteamID}"
tchinese = "玩家 \x03%s\x01 已加入 {SteamID}"
schinese = "玩家 \x03%s\x01 已加入 {SteamID}"
}
DisconnectMsgAdmin =
{
english = "Player \x03%s\x01 disconnected. {Reason} {SteamID}"
tchinese = "玩家 \x03%s\x01 已離開 {Reason} {SteamID}"
schinese = "玩家 \x03%s\x01 已离开 {Reason} {SteamID}"
}

SteamID =
{
english = "\x05<ID: %s>"
}
IP =
{
english = "\x01(\x04IP: %s\x01)"
}
Language =
{
english = "\x01(\x04%s\x01)"
}
Reason =
{
english = "\x01(\x04%s\x01)"
}
}

References:
1. cannounce[github.com]