Raised This Month: $51 Target: $400
 12% 

[ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 06-19-2017 , 09:47   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #461

hm so the default config dont work correctly?

Quote:
"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" "EN;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
}
Ejziponken is offline
Michauux
Member
Join Date: Nov 2015
Old 06-19-2017 , 11:01   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #462

Quote:
"3"
{
"maps" "de_;ar_"
"en" "<font color='#00ffff'>TerytoriumK2.PL</font> <font color='#ff0000'>DM</font> <font color='#adff2f'>137.74.0.202:27018</font>"
"cz" "<font color='#00ffff'>TerytoriumK2.PL</font> <font color='#ff0000'>DM</font> <font color='#adff2f'>137.74.0.202:27018</font>"
"type" "C"
"tag" "" // Message without tag
"Time" "1" // Time in seconds
After 1 second the ad does not disappear from the center of the screen, it is all the time, please fix problem
Michauux is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 06-19-2017 , 12:05   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #463

Quote:
Originally Posted by Ejziponken View Post
hm so the default config dont work correctly?


It should works since i am getting float. So it does not matter if there is .0 but whatever..

Quote:
Originally Posted by Michauux View Post
After 1 second the ad does not disappear from the center of the screen, it is all the time, please fix problem
This is not how its supposed to work. You cannotn set delay for each message.. only one for all in Settings part

Last edited by ESK0; 06-19-2017 at 12:07.
ESK0 is offline
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 07-01-2017 , 10:24   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #464

ESK0, can you add \x10 color?
Sw33T3R is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 07-01-2017 , 12:49   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #465

Quote:
Originally Posted by Sw33T3R View Post
ESK0, can you add \x10 color?
Sure, It looks like dark yellow.. Isn't it ?
ESK0 is offline
GameUniverse
New Member
Join Date: Jul 2017
Old 07-06-2017 , 17:08   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #466

Hello, I have a problem with this plugin because the welcome message appears to me, but the rest of the ads no longer, below my code, which is used for other ads, I will give an example, because the rest looks the same. I checked if there are any log errors, but it does not. Please help and best regards.

Code:
    "1"
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "en"  "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "type" "T"
      "tag" ""
    }
GameUniverse is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 07-07-2017 , 00:35   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #467

Quote:
Originally Posted by GameUniverse View Post
Hello, I have a problem with this plugin because the welcome message appears to me, but the rest of the ads no longer, below my code, which is used for other ads, I will give an example, because the rest looks the same. I checked if there are any log errors, but it does not. Please help and best regards.

Code:
    "1"
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "en"  "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "type" "T"
      "tag" ""
    }
Paste whole .cfg even if its looks for you same.. but I am sure its not. I tested all functions/festures and everything works.

Last edited by ESK0; 07-07-2017 at 00:37.
ESK0 is offline
GameUniverse
New Member
Join Date: Jul 2017
Old 07-07-2017 , 05:22   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #468

Code:
"ServerAdvertisements3"
{
  "Settings"
  {
    "ServerName" "[{orange}GameUniverse.eu{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;EN" // 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" "1" // 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
    "pl" "{orange}*************************************** \n{darkred}Witaj {PLAYERNAME} na Naszym serwerze! \n {lime}Zachecemy do wspolnej gry i zabawy!\n Opiekun: MJL | Strona: GameUniverse.eu\nGrupa STEAM: {grey}http://steamcommunity.com/groups/GameUnvierseEU\n{orange}***************************************"
    "en" "{orange}*************************************** \n{darkred}Witaj {PLAYERNAME} na Naszym serwerze! \n {lime}Zachecemy do wspolnej gry i zabawy!\n Opiekun: MJL | Strona: GameUniverse.eu\nGrupa STEAM: {grey}http://steamcommunity.com/groups/GameUnvierseEU\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 enabled
      "maps" "all"
      "pl" "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "en"  "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "type" "T"
      "tag" ""
    }
    "2"
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Wpisz {orange}!rules{default}, jezeli nie wiesz jakie zasady panuja na serwerze!"
      "en"  "{ServerName} Wpisz {orange}!rules{default}, jezeli nie wiesz jakie zasady panuja na serwerze!"
      "type" "T"
      "tag" ""
    }
    "3"
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Wpisz {orange}!rank{default}, jezeli chcesz sprawdzic swoja pozycje w rankingu!"
      "en"  "{ServerName} Wpisz {orange}!rank{default}, jezeli chcesz sprawdzic swoja pozycje w rankingu!"
      "type" "T"
      "tag" ""
    }
    "4" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Wpisz {orange}!guns{default}, jezeli chcesz walczyc przy uzyciu innej broni!"
      "en"  "{ServerName} Wpisz {orange}!guns{default}, jezeli chcesz walczyc przy uzyciu innej broni!"
      "type" "T"
      "tag" ""
    }
    "5" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "en"  "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "type" "T"
      "tag" ""
    }
    "6" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "en"  "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "type" "T"
      "tag" ""
    }
    "7" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Masz jakas {orange}propozycje{default} lub {orange}uwage{default} dotyczaca serwera?\nNapisz na forum: {orange}www.forum.gameuniverse.eu{default}."
      "en"  "{ServerName} Masz jakas {orange}propozycje{default} lub {orange}uwage{default} dotyczaca serwera?\nNapisz na forum: {orange}www.forum.gameuniverse.eu{default}."
      "type" "T"
      "tag" ""
    }
    "8" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Widzisz cheatera? Napisz do admina poprzez {orange}say_team @{default} ( U a nastepnie @ i tresc... )"
      "en"  "{ServerName} Widzisz cheatera? Napisz do admina poprzez {orange}say_team @{default} ( U a nastepnie @ i tresc... )"
      "type" "T"
      "tag" ""
    }
    "9" // HUD MESSAGE
    {
      "enabled" "1"
      "maps" "zm_"
      "pl" "Zyczymy milej gry na {ServerName}!"
      "en"  "Zyczymy milej gry na {ServerName}!"
      "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
    }
  }
}
GameUniverse is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 07-07-2017 , 07:37   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #469

Quote:
Originally Posted by GameUniverse View Post
Code:
"ServerAdvertisements3"
{
  "Settings"
  {
    "ServerName" "[{orange}GameUniverse.eu{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;EN" // 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" "1" // 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
    "pl" "{orange}*************************************** \n{darkred}Witaj {PLAYERNAME} na Naszym serwerze! \n {lime}Zachecemy do wspolnej gry i zabawy!\n Opiekun: MJL | Strona: GameUniverse.eu\nGrupa STEAM: {grey}http://steamcommunity.com/groups/GameUnvierseEU\n{orange}***************************************"
    "en" "{orange}*************************************** \n{darkred}Witaj {PLAYERNAME} na Naszym serwerze! \n {lime}Zachecemy do wspolnej gry i zabawy!\n Opiekun: MJL | Strona: GameUniverse.eu\nGrupa STEAM: {grey}http://steamcommunity.com/groups/GameUnvierseEU\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 enabled
      "maps" "all"
      "pl" "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "en"  "{ServerName} Lista banow - {orange}http://sourcebans.gameuniverse.eu"
      "type" "T"
      "tag" ""
    }
    "2"
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Wpisz {orange}!rules{default}, jezeli nie wiesz jakie zasady panuja na serwerze!"
      "en"  "{ServerName} Wpisz {orange}!rules{default}, jezeli nie wiesz jakie zasady panuja na serwerze!"
      "type" "T"
      "tag" ""
    }
    "3"
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Wpisz {orange}!rank{default}, jezeli chcesz sprawdzic swoja pozycje w rankingu!"
      "en"  "{ServerName} Wpisz {orange}!rank{default}, jezeli chcesz sprawdzic swoja pozycje w rankingu!"
      "type" "T"
      "tag" ""
    }
    "4" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Wpisz {orange}!guns{default}, jezeli chcesz walczyc przy uzyciu innej broni!"
      "en"  "{ServerName} Wpisz {orange}!guns{default}, jezeli chcesz walczyc przy uzyciu innej broni!"
      "type" "T"
      "tag" ""
    }
    "5" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "en"  "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "type" "T"
      "tag" ""
    }
    "6" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "en"  "{ServerName} IP serwera: {orange}85.221.225.50:28022{default} - pamietaj o tym, aby koniecznie dodac go do ulubionych!"
      "type" "T"
      "tag" ""
    }
    "7" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Masz jakas {orange}propozycje{default} lub {orange}uwage{default} dotyczaca serwera?\nNapisz na forum: {orange}www.forum.gameuniverse.eu{default}."
      "en"  "{ServerName} Masz jakas {orange}propozycje{default} lub {orange}uwage{default} dotyczaca serwera?\nNapisz na forum: {orange}www.forum.gameuniverse.eu{default}."
      "type" "T"
      "tag" ""
    }
    "8" // Message with "ServerName" option tag
    {
      "enabled" "1" // Message is enabled
      "maps" "all"
      "pl" "{ServerName} Widzisz cheatera? Napisz do admina poprzez {orange}say_team @{default} ( U a nastepnie @ i tresc... )"
      "en"  "{ServerName} Widzisz cheatera? Napisz do admina poprzez {orange}say_team @{default} ( U a nastepnie @ i tresc... )"
      "type" "T"
      "tag" ""
    }
    "9" // HUD MESSAGE
    {
      "enabled" "1"
      "maps" "zm_"
      "pl" "Zyczymy milej gry na {ServerName}!"
      "en"  "Zyczymy milej gry na {ServerName}!"
      "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
    }
  }
}
Use !sa3debug and check console. Paste the output here.. Next thing I do not understand to is chat variable {ServerName}?? If you want to use ServerName from Settings part you need just to remove "tag" from each message and it will use ServerName.. Now it thinks you do not want message tag.. but you do.

Last edited by ESK0; 07-07-2017 at 07:42.
ESK0 is offline
GameUniverse
New Member
Join Date: Jul 2017
Old 07-07-2017 , 08:43   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 15.5.2017* | *VERSION 3.1.2*
Reply With Quote #470

Sufficiently, I will do as above. I removed the line from "tag", and in addition {ServerName} and plugin started working without problems, I recommend
GameUniverse is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode