View Single Post
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 07-25-2017 , 23:49   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #505

Quote:
Originally Posted by Obyboby View Post
I got a huge problem where the plugin only displays the first 3 messages I set in my CFG. Any idea why?

Code:
"ServerAdvertisements3"
{
  "Settings"
  {
    "ServerName" "[{Lime}EZGAMING{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" "180" // Time in seconds
    "Languages"  "EN;IT" // 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 - T, H, C
    "it" "{orange}*************************************** \n{darkred}Benvenuto su EZGAMING {PLAYERNAME}! \n Per favore rispetta le regole, consultabili tramite !rules \n {lime}Visita il nostro sito ezgamingita.altervista.org \n {orange}***************************************"
    "en" "{orange}*************************************** \n{darkred}Welcome to EZGAMING {PLAYERNAME}! \n Please follow the rules, read them with !rules \n {lime}Visit our website ezgamingita.altervista.org\n {orange}***************************************"
    "Delay" "15.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" "all" //- Default: all
      "it" "Verifica le tue prestazioni scrivendo {Green}rank"
      "en" "Check out your performance by typing {Green}rank"
      "type" "T"
    }
        "2"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Sei tu il RE del NOSCOPE? \n Scoprilo con {Green}!mynoscop{Default} o {Green}!noscop"
      "en" "Are you the NO SCOPE KING? Find out by typing {Green}!mynoscop{Default} or {Green}!noscop"
      "type" "T"
    }
        "3"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Scrivi {Green}top {Default}per visualizzare i primi 10 giocatori in classifica!"
      "en" "Type {Green}top {Default} to see the top10 rank"
      "type" "T"
    }
  } 
  "4"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Usa {Purple}!takeknife {Default} per provare il coltello di un altro giocatore!"
      "en" "Use {Purpel}!takeknife {Default} to try another player's knife!"
      "type" "T"
    }
    "5"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Comandi RankMe: {Green}rank{Default}, {Green}next{Default}, {Green}top{Default}, {Green}tophs{Default} \n {Green}topweapon{Default}, {Green}topkills{Default}, {Green}topmvp{Default}, {Purple}hitboxme"
      "en" "RankMe commands: {Green}rank{Default}, {Green}next{Default}, {Green}top{Default}, {Green}tophs{Default} \n {Green}topweapon{Default}, {Green}topkills{Default}, {Green}topmvp{Default}, {Purple}hitboxme"
      "type" "T"
    }
      "6"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Visita il nostro sito! \n {Green}ezgamingita.altervista.org"
      "en" "Come pay us a visit! \n {Green}ezgamingita.altervista.org"
      "type" "H"
    }
      "7"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "TeamSpeak 3 server IP: {Green}95.141.36.163:9992"
      "en" "TeamSpeak 3 server IP: {Green}95.141.36.163:9992"
      "type" "T"
    }
          "8"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Aggiungi il server ai preferiti: {Green}95.141.36.163:27016"
      "en" "Bookmark our server: {Green}95.141.36.163:27016"
      "type" "T"
    }
              "9"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Il profilo Steam deve esser {Green}pubblico{Default} per permettere ai moderatori le dovute verifiche"
      "en" "Please keep your Steam profile {Green}public{Default} at all times while playing here"
      "type" "T"
    }
                  "10"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Chi vincerà il round? \n Piazza la tua scommessa con {Green}bet"
      "en" "Who's going to win this round? Place your bets by typing {Green}bet"
      "type" "T"
    }
                      "11"
    {
      "enabled" "1" // Message is temporarily disabled - Default: 1
      "maps" "all" //- Default: all
      "it" "Unisciti al gruppo e imposta la tag {Green}ezgamingita{Default}! \n Per te un {Purple}BONUS{Default} in game!"
      "en" "Join our Steam group and set our {Green}ezgamingita{Default} tag! \n An in-game {Purple}BONUS{Default} is available!"
      "type" "T"
    }
}

Also aren't those numbers before the messages really annoying?
I mean: "1" "2" etc..if, say, I delete message number "3", I would have to change all the next messages (4 becomes 3, 5 becomes 4, etc)
Maybe I don't need to put them in order at all? lol

edit: OH CRAP. I just noticed that extra } in the code. LOL I'm so retarded fixing rn! What about the other question tho?

Another question: since "Enabled" is set to 1 by default, can I remove it from the messages I plan to keep active at all times? Stupid question, sorry.. xD
Yes, you can remove "Enabled" from all messages.. and "maps" also.. well the order is not really important... You can replace numbers with whatever you can imagine..
ESK0 is offline