Jump to content
Sign in to follow this  
tabaczo

ServerAdvertisements3

Recommended Posts

Witam mam mały problem przy użyciu ServerAdvertisements3 po dodaniu wiadomości 1,2 i 3 wyświetla tylko pierwszą, ewentualnie 2 i tyle, więcej nic.

 

 

Share this post


Link to post
Share on other sites

Pokaż cfg. wiadomości, może coś źle zrobiłeś.

 

Share this post


Link to post
Share on other sites
Spoiler

"ServerAdvertisements3"
{
  "Settings"
  {
    "ServerName" "[{orange}xxx{default}]" // Server tag
    "ServerType" "default" // Only if MySQL is 1 -> Simply divide messages to groups (e.g. 3 servers uses ServerType surf and 2 servers uses jailbreak)
    "Time" "30.0" // Time in seconds
    "Languages"  "EN;PL" // List of languages / Keep the main language first (If player connect from Country you did not translated. He will get messages in language which is the first in list).
    "Default language" "geoip" // Value = "geoip" or "ingame"
    "Log expired messages" "0" // 1 = Enabled -> Messages are loged in Sourcemod's error log
  }
  "Welcome Message"
  {
    "Enabled" "1" // 1 = Enabled / 0 = Disabled,
    "Type" "T" // Type of message - Only T and C types are supported right now
    "en" "{orange}************************************************** \n{darkblue}Witaj na naszym serwerze,{darkred} {PLAYERNAME}! \n {lime}Zapraszamy na forum:{lightblue} www.xxx \n {grey2}Sklep serwera:{green}xxxx {grey2}lub {green}!sklep \n {darkred}Właściciel: {bluegrey}xxxx\n{orange}**************************************************"
    "pl" "{orange}************************************************** \n{darkblue}Witaj na naszym serwerze,{darkred} {PLAYERNAME}! \n {lime}Zapraszamy na forum:{lightblue} www.xxx \n {grey2}Sklep serwera:{green}xxxx {grey2}lub {green}!sklep \n {darkred}Właściciel: {bluegrey}xxx\n{orange}**************************************************"
    "Delay" "5.0" // Time in seconds after is client connected to server to show message
    "flags" "" // Client with this flag will get welcome message - Keep empty for all
  }
  "Messages"
  {
 
     "1"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "awp_" //- Default: all
      "en" "{orange}Aby użyć sklepu użyj komendy: {red}!sklep {green}!sklepsms {blue}!smssklep \n {green}Sklep ONLINE 24/7:{orchid} link \n {green}Zakupy aktywowane natychmiastowo!"
      "pl" "{orange}Aby użyć sklepu użyj komendy: {red}!sklep {green}!sklepsms {blue}!smssklep \n {green}Sklep ONLINE 24/7:{orchid} link \n {green}Zakupy aktywowane natychmiastowo!"
      "type" "T"
      "tag" "★{darkblue}Sklep xxx{default}★"
    }

 "2"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "en" "{green}Obecna mapa: {CURRENTMAP} \n {blue}Graczy online: {PLAYERCOUNT} \n {green}Następna mapa: {NEXTMAP} \n {blue}Twój {STEAMID}"
      "pl" "{green}Obecna mapa: {CURRENTMAP} \n {blue}Graczy online: {PLAYERCOUNT} \n {green}Następna mapa: {NEXTMAP} \n {blue}Twój {STEAMID}"
      "type" "T"
      "tag" "★{darkred}xxx{default}★"
    }
    "3" // HUD MESSAGE
    {
      "enabled" "1"
      "maps" "all"
      "en" "{PLAYERNAME}, zajrzyj na forum xxx"
      "pl" "{PLAYERNAME}, zajrzyj na forum xxx"
      "type" "h"
      "color" "255 112 0" // RGB (R G B)
      "color2" "255 255 51" // RGB (R G B)
      "effect" "2" // 0,1,2
      "channel" "5" // Any number
      "posx" "-1.0" //left to right
      "posy" "0.05" //top to bottom
      "fadein" "0.5" //Fade in time
      "fadeout" "0.4" //Fade out time
      "holdtime" "3.0" //Message hold time
    }
  }
}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Arnaksik
      Witam zainstalowałem na swoim serwerze ServerAdvertisements3 skonfigurwałem i wywala mi błąd 
       

      >KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons/sourcemod/configs/ServerAdvertisements3.cfg ServerAdvertisements3, [{red}#{green}Arena{default}], (*Welcome Message*),  KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/ServerAdvertisements3.cfg (*8*), (*tag*), (*Welcome Message*),  KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons/sourcemod/configs/ServerAdvertisements3.cfg ServerAdvertisements3, [{red}#{green}Arena{default}], (*Welcome Message*),  KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/ServerAdvertisements3.cfg (*8*), (*tag*), (*Welcome Message*),  L 11/10/2017 - 11:54:03: [SM] Exception reported: [SA3] 'PL' translation missing in message "1" L 11/10/2017 - 11:54:03: [SM] Blaming: ServerAdvertisements3.smx L 11/10/2017 - 11:54:03: [SM] Call stack trace: L 11/10/2017 - 11:54:03: [SM]   [0] SetFailState L 11/10/2017 - 11:54:03: [SM]   [1] Line 55, files/misc.sp::AddMessagesToArray L 11/10/2017 - 11:54:03: [SM]   [2] Line 450, C:\Users\Arnaksik\Desktop\sourcemod\scripting\ServerAdvertisements3.sp::LoadMessages L 11/10/2017 - 11:54:03: [SM]   [3] Line 356, C:\Users\Arnaksik\Desktop\sourcemod\scripting\ServerAdvertisements3.sp::LoadConfig L 11/10/2017 - 11:54:03: [SM]   [4] Line 61, C:\Users\Arnaksik\Desktop\sourcemod\scripting\ServerAdvertisements3.sp::OnMapStart PutClientInServer: no info_player_start on level
       
      mój Welcome message
       

      >     "Welcome Message"     {         "Enabled" "1"         "Type" "T"         "PL" "{orange}============================= \n {green}Witaj na serwerze {red}{PLAYERNAME}! \n {green}Aktualnie grasz na serwerze: {red}Arena \n {green}IP Serwera: {red}137.74.0.162:27053 \n {green}Dołącz do naszej społeczności: {red}PlayGlobal.pl \n {orange}============================="         "EN" "{orange}============================= \n {green}Witaj na serwerze {red}{PLAYERNAME}! \n {green}Aktualnie grasz na serwerze: {red}Arena \n {green}IP Serwera: {red}137.74.0.162:27053 \n {green}Dołącz do naszej społeczności: {red}PlayGlobal.pl \n {orange}============================="         "Delay" "5.0"          "flags" ""     }
    • By Zhp.
      Witam mam problem z wgraniem na serwer tego pluginu https://forums.alliedmods.net/showthread.php?p=2199152
      wyrzuca taki komunikat 
      L 08/17/2017 - 11:44:25: [SM] [1] Line 66, D:\Sourcemod\ServerAdvertisements3\ServerAdvertisements3.sp::OnMapStart L 08/17/2017 - 11:44:25: [SM] [0] SetFailState L 08/17/2017 - 11:44:25: [SM] Call stack trace: L 08/17/2017 - 11:44:25: [SM] Blaming: ServerAdvertisements3.smx L 08/17/2017 - 11:44:25: [SM] Exception reported: [SA3] SteamWorks is not loaded oto cfg 
      "ServerAdvertisements3" { "Settings" { "ServerName" "[{orange}SERVER{default}]" // Server tag "MySQL" "0" // If 1 -> Messages will be loaded from MySQL "ServerType" "default" // Only if MySQL is 1 -> Simply divide messages to groups (e.g. 3 servers uses ServerType surf and 2 servers uses jailbreak) "Time" "5" // Time in seconds "Languages" "PL" // List of languages / Keep the main language first (If player connect from Country you did not translated. He will get messages in language which is the first in list). "Default language" "geoip" // Value = "geoip" or "ingame" "Log expired messages" "0" // 1 = Enabled -> Messages are loged in Sourcemod's error log "ServerTracker" "1" // 1 = Enabled, 0 = Disabled } "Welcome Message" { "Enabled" "1" // 1 = Enabled / 0 = Disabled, "Type" "T" // Type of message - Only T and C types are supported right now "PL" "{orange}[PLHW] \n{darkred}Witamy Cię na serwerze only mirage {PLAYERNAME}! \n {lime}pack by Dark." "Delay" "5.0" // Time in seconds after is client connected to server to show message "flags" "" // Client with this flag will get welcome message - Keep empty for all } "Messages" { "1" { "enabled" "0" // Message is temporarily disabled - Default: 1 "enabledtill" "30.05.2017" // Date DD/MM/YYYY -> Message will be available till 30. May 2017 "maps" "all" //- Default: all "PL" "Gramy Aktualnie na {CURRENTMAP} \n Gracze online: {PLAYERCOUNT} \n Nastepna mapa : {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n" "type" "T" "tag" "[{darkred}SYSTEM{default}]" } "2" { "enabled" "1" // Message is enabled "maps" "all" "PL" "Admini ONLINE na serwerze : {ADMINSONLINE}" "type" "T" "ignore" "zb" } "3" { "maps" "all" "PL" "<font color='#ff00ff'>Właścicielami są {red}Łysy Grzeniu i Mirek <3</font>" "type" "C" "tag" "{orange}[PLHW]" // Message without tag } "4" // Message with "ServerName" option tag { "maps" "all" "PL" "{DEFAULT}Co posiada vip ?{GREEN}wpisz !vip" "type" "t" "tag" "{orange}[PLHW]" } "5" // HUD MESSAGE { "enabled" "1" "PL" "ZAPRASZAMY NA FORUM POLSKIHURTWORLD.EU" "type" "h" "color" "255 112 0" // RGB (R G B) "color2" "255 255 51" // RGB (R G B) "effect" "2" // 0,1,2 "channel" "5" // Any number "posx" "-1.0" //left to right "posy" "0.05" //top to bottom "fadein" "0.2" //Fade in time "fadeout" "0.2" //Fade out time "holdtime" "5.0" //Message hold time } } } Z tego co wiem nie działa wersja tłumaczenia na "cz" i zmieniłem na "PL" ale nw czy to coś da, widziałem że csgo nie wspiera pluginów które generują wiadomości HUD w grze. Co może być problem.
×
×
  • Create New...