Board logo

標題: 我想問下彩色廣告系統 (支援2.0.5.7)插件問題 [打印本頁]

作者: homan173    時間: 2011-2-7 01:51     標題: 我想問下彩色廣告系統 (支援2.0.5.7)插件問題

我想問係唔係可以自己入面d內容??

姐係好似可以set幾多秒自動彈句說話出黎..

好似講...

歡迎大家進入本伺服器!!~~

大家要玩得開開心心果d字眼??

同埋要點樣開SMX檔..我用Notepad開全亂瑪..
作者: lostinblue    時間: 2011-2-7 02:15     標題: 回復 1# 的帖子

唔係開SMX檔= =
你download個post應該有教你改?
作者: toto345618433    時間: 2011-2-7 02:16     標題: 回復 1# 的帖子

.smx 是不能開啟或編輯

.sp 檔才可以... ((.smx 不能轉換成.sp   只能由插件作者提供))
作者: homan173    時間: 2011-2-7 02:34

引用:
原帖由 lostinblue 於 2011-2-7 02:15 發表
唔係開SMX檔= =
你download個post應該有教你改?
冇呀 所以我先問...
作者: homan173    時間: 2011-2-7 02:36

引用:
原帖由 toto345618433 於 2011-2-7 02:16 發表
.smx 是不能開啟或編輯

.sp 檔才可以... ((.smx 不能轉換成.sp   只能由插件作者提供))
咁我見人地d伺服器有既.. 我想問 知唔知點樣整..
作者: gordon7803    時間: 2011-2-7 09:04

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

Code:
"Advertisements"
{
    "1"
    {
        "type"        "S"
        "text"        "{GREEN}contact@domain.com"
    }
    "2"
    {
        "type"        "T"
        "text"        "www.domain.com"
        "flags"       "a"
    }
}
Type

This field can contain the following letters:

C A center message, like sm_csay.
H A hint message, like sm_hsay.
M A menu message, like sm_msay, but without the title or the Exit-option. 0 will still hide the message though. Will block 1-9 from switching weapons as long as it's showing.
S A chat message, like sm_say. It supports the following colors: {DEFAULT}, {TEAM}, {GREEN} and {LIGHTGREEN}. {TEAM} and {LIGHTGREEN} unfortunately don't work together in a single advertisement, so it's one or the other. For example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
T A top-left message, like sm_tsay. It supports one of the following colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN}, {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET} and {LIGHTBLUE}. You can omit the color if you just want the normal color. For example to have an orange message, set text to: {ORANGE} Text here

Multiple types per advertisement are allowed, so you can show a single advertisement in multiple places at the same time.

Text

This field supports the following variables: {CURRENTMAP}, {DATE}, {TICKRATE}, {TIME}, {TIME24} and {TIMELEFT}. Next to that you can print the value of a cvar by enclosing the name with {}. For example you can use {SM_NEXTMAP} to show the name of the next map. Last but not least, for a boolean cvar you might want to have it print OFF/ON instead of 0/1. For that you can use {BOOL:name}. For example {BOOL:MP_FRIENDLYFIRE} will print OFF if mp_friendlyfire is set to 0, and ON if it's set to 1. If you want it to print something other than OFF/ON, you will have to open the source code, change the defines at the top and recompile. Also supports \n for newlines (confirmed to work for C, M and S messages). A couple of examples are given in the attached advertisements.txt.

Flags

This field is optional. It accepts a list of flags of admins that will not see the advertisement if they have any of those flags. If left empty, only admins will see the advertisement. If omitted everyone will see the advertisement.
時間系:
sm_advertisements_interval (def 30)
Amount of seconds between advertisements.





歡迎光臨 IPvE vLan 遊戲平台|網吧系統 (https://www.ipve.com/bbs/) Powered by Discuz! 6.0.0