發新話題
打印

請教advertisements廣告插件一個問題

[Close]

請教advertisements廣告插件一個問題

我既廣告字段只係會響岩岩入到game同埋過關後會出現  之後唔再彈出黎
佢有幾句cvar   但係cfg文件入面就冇
唔知會唔會係哩幾句cvar要唔知輸入去邊d地方而有出現哩個問題
sm_advertisements_enabled (0/1, def 1)
Enable/disable displaying advertisements.

sm_advertisements_file (def "advertisements.txt")
File to read the advertisements from. Useful if you're running multiple servers from one installation, and want to use different advertisements per server.

sm_advertisements_interval (def 30)
Amount of seconds between advertisements.

sm_advertisements_reload
Server command to reload the advertisements from advertisements.txt.

By default the plugin reads the advertisements from configs/advertisements.txt, which has this format:




以下係我既advertisements.txt  痲煩睇下邊度有問題

// Advertisements 0.5
// by Tsunami
//
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
//    - Colors:  {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
//    - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
//    - Colors:  {WHITE},  {RED},  {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
//               {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
//    - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.
"Advertisements"
{        sm_advertisements_interval 10<---(哩句係我自己加落去)
        "1"
        {
                "type"                "S"
                "text"                "{GREEN}[公告]{LIGHTGREEN}用Boomer汁擲向Tank,踢!!!!!!!!!"
        }
        "2"
        {
                "type"                "S"
                "text"                "{GREEN}[公告]{LIGHTGREEN}單手糸近武對Tank攻擊力減弱,雙手糸近武(包括鐵筆)對Tank攻擊力增加(武士刀除外)"
        }
        "3"
        {
                "type"                "S"
                "text"                "{GREEN}[公告]{LIGHTGREEN}Boomer汁,PipeBomb及汽油彈可傳給隊友,倒地可按右鍵擲出"
        }
        "4"
        {
                "type"                "S"
                "text"                "{GREEN}[公告]{LIGHTGREEN}手槍,密林手槍及單發散彈槍威力增強,電鋸油量增加4倍"
        }
        "5"
        {
                "type"                "S"
                "text"                "{GREEN}[公告]{LIGHTGREEN}狙擊槍攻擊力增加,一代狙擊槍180,二代狙擊槍120,AWP重狙999"
        }
        "6"
        {
                "type"                "S"
                "text"                "{GREEN}[公告]{LIGHTGREEN}如果當哩個Server係十幾人果d有買野有降落傘既傻仔場黎玩盞死快D"
        }
        }
}
附件: 您所在的用戶組無法下載或查看附件

TOP

要轉UTF-8 不是嗎?

TOP

引用:
原帖由 日本☆蕉 於 2010-4-16 19:02 發表
要轉UTF-8 不是嗎?
我係話出過一次之後唔再出現
唔係顯示錯誤

TOP

試下刪左你加果個sm_advertisements_interval 10
依句野應該係打響server.cfg
或者開server時直接打入console

[ 本帖最後由 22029205 於 2010-4-18 01:45 編輯 ]

TOP

引用:
原帖由 22029205 於 2010-4-18 01:42 發表
試下刪左你加果個sm_advertisements_interval 10
依句野應該係打響server.cfg
或者開server時直接打入console
之前用過呢個,好似冇咩效,係我做錯左??

TOP

發新話題