View Single Post
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-28-2017 , 01:05   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #577

First of all it's easier to read the cfg if you post it with php or code quotes

PHP Code:
"ServerAdvertisements3"
{
"Settings"
{
"ServerName" "[{orange}MDK{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" "EN;SP;PT;CZ" // 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 type supported right now
"en" "{orange}************************************ * ** \n{darkred}Welcome to this server {PLAYERNAME}! \n {lime}This server uses ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}******************************* ********"
"sp" "{orange}************************************ *** \n{darkred}Bienvenido a MDKonline {PLAYERNAME}!- visita www.mdkonline.com.ar\n {lime}Este server usa ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}******************************* ********"

"pt" "{orange}************************************ *** \n{darkred}Bem-vindo ao nosso servidor {PLAYERNAME}! \n {lime}Este servidor usa ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}******************************* ********"

"cz" "{orange}************************************ * ** \n{darkred}Vítej na tomto serveru {PLAYERNAME}! \n {lime}Tento server používá ServerAdvertisements3 \n Autor: {bluegrey}www.steamcommunity.com/id/esk0\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" // "0" Message is temporarily disabled - Default: 1
"enabledtill" "30.05.2018" // Date DD/MM/YYYY -> Message will be available till 30. May 2017
"maps" "all" //- Default: all
"en" "Current map is: {CURRENTMAP} \n Players online: {PLAYERCOUNT} \n Next map: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravity: {sv_gravity}"
"sp" "El mapa es: {CURRENTMAP} \n Jugadores online: {PLAYERCOUNT} \n Proximo mapa: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravedad: {sv_gravity}"
"pt" "O mapa é: {CURRENTMAP} \n Jogadores online: {PLAYERCOUNT} \n Proximo mapa: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravedad: {sv_gravity}" 
"cz" "Momentálně se hraje: {CURRENTMAP} \n Počet hráčů: {PLAYERCOUNT} \n Příští mapa: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravitace: {sv_gravity}"
"type" "T"
"tag" "[{darkred}SYSTEM{default}]"
"ignore_maps" "de_inferno;ar_"
}
"2"
{
"enabled" "1" // Message is enabled
"maps" "all"
"en" "Message 2"
"sp" "Admines online: {ADMINSONLINE}" 
"pt" "Admines online: {ADMINSONLINE}"
"cz" "Admini: {ADMINSONLINE}"
"type" "T"
"tag" "[{lime}VIP{default}]"
"ignore" "a"
"ignore_maps" "de_dust2"
}
"3"
{
"maps" "de_;ar_"
"en" "Message 3"
"cz" "<font color='#ff00ff'>Zpráva 3!</font>"
"type" "C"
"tag" "" 
// Message without tag
}
"4" // Message with "ServerName" option tag
{
"maps" "zm_"
"en" "Message 4"
"cz" "Zprava 4"
"type" "t"
}
"5" // HUD MESSAGE
{
"enabled" "1"
"maps" "zm_"
"en" "NEW HUD MESSAGE TEXT BY {PLAYERNAME}"
"cz" "NEW HUD MESSAGE TEXT BY {PLAYERNAME}"
"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
}
}

Plugin says it's unable to find the settings in that file so something must be messed up in the syntax in the settings section i guess

Did you save the file in the correct format as the first post says?
__________________

Last edited by Obyboby; 11-28-2017 at 01:06.
Obyboby is offline