Skip to content

Latest commit

 

History

History

cannounce

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Description | 內容

Replacement of default player connection message, allows for custom connection messages

Note
🟥Dedicated Server Only
🟥只能安裝在Dedicated Server

  • Image | 圖示
    cannounce_1

  • Apply to | 適用於

     Any Source Game Dedicated Server
    
  • How does it work?
    • Display player connected and disconnected message
  • Notice

  • Require | 必要安裝

    1. [INC] Multi Colors
  • ConVar | 指令
    • cfg\sourcemod\cannounce.cfg
       // If 1, Display if player is admin on connect/disconnect message (allows the {PLAYERTYPE} placeholder)
       sm_ca_display_admin "1"
      
       // shows standard player connected message
       sm_ca_showstandard "0"
      
       // displays enhanced message when player connects
       sm_ca_showenhanced "1"
      
       // Plays a specified (sm_ca_playsoundfile) sound on player connect
       sm_ca_playsound "1"
      
       // Sound to play on player connect if sm_ca_playsound = 1
       sm_ca_playsoundfile "ambient/alarms/klaxon1.wav"
      
       // shows standard player discconnected message
       sm_ca_showstandarddisc "0"
      
       // displays enhanced message when player disconnects
       sm_ca_showenhanceddisc "1"
      
       // Plays a specified (sm_ca_playdiscsoundfile) sound on player discconnect
       sm_ca_playdiscsound "0"
      
       // Sound to play on player discconnect if sm_ca_playdiscsound = 1
       sm_ca_playdiscsoundfile "ui/beep_error01.wav"
      
       // Time to ignore all player join/disconnect sounds on a map load
       sm_ca_mapstartnosound "30.0"
      
       // displays a different enhanced message to admin players (ADMFLAG_GENERIC)
       sm_ca_showenhancedadmins "1"
  • Command | 命令

    None

  • Translation Support | 支援翻譯
     English
     繁體中文
     简体中文
    
  • Similar Plugin | 相似插件
    1. l4d_playerjoining: Informs other players when a client connects to the server and changes teams.while player joins the server

      當玩家更換隊伍、連線、離開伺服器之時,通知所有玩家 (簡單版的提示)

  • Changelog | 版本日誌
    • v2.2 (2024-12-3)

    • v2.1 (2024-11-7)

      • Update cvars
    • v2.0 (2022-12-1)

      • Remove GeoIPCity (GeoIP2 is now included with SourceMod 1.11.6703.)
      • Remove player custom message (No one cares about it!)
    • v1.9

      • Remake Code
    • v1.8


中文說明

顯示玩家進來遊戲或離開遊戲的提示訊息 (IP、國家、Steam ID 等等)

  • 原理

    • 玩家連線進來伺服器或離開伺服器時,抓取玩家的各種訊息並顯示在聊天視窗當中
    • 顯示IP、國家、Steam ID,播放玩家連線音效與玩家離開音效
    • 管理員會看到不同的提示訊息 (譬如只有管理員能看到IP與Steam ID)
  • 必看步驟

  • 指令中文介紹 (點我展開)
    • cfg\sourcemod\cannounce.cfg
       // 為1時,顯示該玩家是否為管理員 (data文件必須寫入{PLAYERTYPE})
       sm_ca_display_admin "1"
      
       // 為1時,玩家連線進來伺服器時,顯示遊戲內建的訊息
       sm_ca_showstandard "0"
      
       // 為1時,玩家連線進來伺服器時,顯示各種訊息
       sm_ca_showenhanced "1"
      
       // 為1時,玩家連線進來伺服器時,播放音效
       sm_ca_playsound "1"
      
       // 玩家連線進來伺服器時所播放的音效 (路徑相對於sound資料夾)
       sm_ca_playsoundfile "ambient/alarms/klaxon1.wav"
      
       // 為1時,玩家離開伺服器時,顯示遊戲內建的訊息
       sm_ca_showstandarddisc "0"
      
       // 為1時,玩家離開伺服器時,顯示各種訊息
       sm_ca_showenhanceddisc "1"
      
       // 為1時,玩家離開伺服器時,播放音效
       sm_ca_playdiscsound "0"
      
       // 玩家離開伺服器時所播放的音效 (路徑相對於sound資料夾)
       sm_ca_playdiscsoundfile "ui/beep_error01.wav"
      
       // 地圖載入後30秒內 不要播放連線與離開音效
       sm_ca_mapstartnosound "30.0"
      
       // 為1時,給管理員顯示不同的玩家訊息 (權限所需: ADMFLAG_GENERIC)
       // (譬如只有管理員能看到玩家的IP與Steam ID)
       sm_ca_showenhancedadmins "1"