Raised This Month: $106 Target: $400
 26% 

[ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3


Post New Thread Reply   
 
Thread Tools Display Modes
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 08-29-2018 , 08:13   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #651

Add this code after line 57:
PHP Code:
  ArrayList temptemp2;
  for ( 
int i 0aMessagesList.Lengthi++ )
  {
    
temp view_as<ArrayList>(aMessagesList.Get(i));
    if ( 
temp != null )
    {
        
temp2 view_as<ArrayList>(temp.Get(4));
        
delete temp2;
        
delete temp;
    }
  } 
hh2 is offline
cytrus224
AlliedModders Donor
Join Date: Apr 2017
Location: Poland
Old 09-27-2018 , 15:45   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #652

Having some difficulties setting hudmessage. Seems like holdtime variable doesnt work for me, messages change every 5 seconds.
PHP Code:
"ServerAdvertisements3"
{
  
"Settings"
  
{
    
"ServerName" "[{orange}BHOP GGEASY.pl{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;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
    
"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}***************************************"
    "pl" "{orange}*************************************** \n{darkred}Witaj na serwerze BHOP {PLAYERNAME}! \n {lime}Ten serwer używa 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" "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
      
"en" "Current map is: {CURRENTMAP} \n Players online: {PLAYERCOUNT} \n Next map: {NEXTMAP} \n Friendly fire: {mp_friendlyfire} \n Gravity: {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"
      "en" "Remember to add server IP to your favourites! \n {SERVERIP}"
      "pl"  "Pamiętaj by dodać IP serwera do ulubionych! \n {SERVERIP}"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"3" 
    
{
      
"enabled" "1"
      "en" "Join our discord! \n discord.ggeasy.pl"
      "pl"  "Dołącz do naszego discorda! \n discord.ggeasy.pl"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"4" 
    
{
      
"enabled" "1"
      "en" "!chatrank} will open \n chat rank selection menu"
      "pl"  "!chatrank otwiera menu \n wybierania rang na chacie"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"5" 
    
{
      
"enabled" "1"
      "en" "Type !ssj to open \n sixthjumpstats plugin menu."
      "pl"  "Wpisz !ssj by otworzyć \n menu pluginu sixthjumpstats"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "9.0" //Message hold time
    
}
    
    
"6" 
    
{
      
"enabled" "1"
      "en" "Wanna join our whitelist server? \n Apply on our forum, ggeasy.pl"
      "pl"  "Chcesz dołączyć do serwera whitelist? \n Aplikuj na forum ggeasy.pl"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"7" 
    
{
      
"enabled" "1"
      "en" "This server runs Store plugin. \n Type !store to open the menu."
      "pl"  "Ten serwer posiada plugin Store. \n Wpisz !store by otworzyć je."
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"8" 
    
{
      
"enabled" "1"
      "en" "Type !daily to \n receive daily credits!"
      "pl"  "Wpisz !daily by otrzymać \n kredyty!(raz na 24h)"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"9" 
    
{
      
"enabled" "1"
      "en" "Wanna gain more credits? Add #ggeasy.pl \n to your nickname and receive \n 5 credits per 5 minutes of playing!"
      "pl"  "Chcesz otrzymywać więcej kredytów? \n Dopisz #ggeasy.pl do swojego nicku \n i otrzymuj 5kredytów co 5minut!)"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "15.0" //Message hold time
    
}
    
    
"10" 
    
{
      
"enabled" "1"
      "en" "Join our steamgroup at \n steamcommunity.com/groups/ggeasypl \n and receive 5credits per 5minutes!"
      "pl"  "Dołącz do grupy steam \n steamcommunity.com/groups/ggeasypl \n i otrzymuj 5kredytów co 5minut!"
      "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" "0" //left to right
      
"posy" "0.6" //top to bottom
      
"fadein" "0.2" //Fade in time
      
"fadeout" "0.2" //Fade out time
      
"holdtime" "9.0" //Message hold time
    
}
    
  }

Nevermind, figured it out. "Time" needs to be raised too.

Last edited by cytrus224; 09-28-2018 at 12:55. Reason: damn configs.
cytrus224 is offline
cytrus224
AlliedModders Donor
Join Date: Apr 2017
Location: Poland
Old 09-30-2018 , 06:09   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #653

Hey, can u add a command that would allow player to hide advertisements for him?
cytrus224 is offline
ESK0
Veteran Member
Join Date: May 2014
Location: Czech Republic
Old 09-30-2018 , 16:57   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #654

Quote:
Originally Posted by cytrus224 View Post
Hey, can u add a command that would allow player to hide advertisements for him?
Maybe if i will find some free time
__________________
Feel free to add me for private plugins My steam profile.
ESK0 is online now
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 09-30-2018 , 18:00   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #655

Quote:
Originally Posted by cytrus224 View Post
Hey, can u add a command that would allow player to hide advertisements for him?
Quote:
Originally Posted by ESK0 View Post
Maybe if i will find some free time
Best, make the command but only who has the flag "b" can disable if you want. I think it would be better.
__________________
ABOUT-ME
Owner ZK Servidores

paulo_crash is offline
Send a message via Skype™ to paulo_crash
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 10-08-2018 , 00:28   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #656

It has the variable {SERVERIP}? Previous version had, not found in configuration.
__________________
ABOUT-ME
Owner ZK Servidores

paulo_crash is offline
Send a message via Skype™ to paulo_crash
ESK0
Veteran Member
Join Date: May 2014
Location: Czech Republic
Old 10-08-2018 , 01:35   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #657

Quote:
Originally Posted by paulo_crash View Post
It has the variable {SERVERIP}? Previous version had, not found in configuration.
wtf, check text variables in first post
__________________
Feel free to add me for private plugins My steam profile.
ESK0 is online now
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 10-08-2018 , 01:37   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #658

Quote:
Originally Posted by ESK0 View Post
wtf, check text variables in first post
Sorry, I did not see it, thank you.
__________________
ABOUT-ME
Owner ZK Servidores

paulo_crash is offline
Send a message via Skype™ to paulo_crash
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 10-08-2018 , 17:36   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #659

In my server log have the following floot:
Quote:
L 10/08/2018 - 16:00:25: [ServerAdvertisements3.smx] Too many requests, please try again later. Next allowed request: 4 minutes.
What could it be?
__________________
ABOUT-ME
Owner ZK Servidores

paulo_crash is offline
Send a message via Skype™ to paulo_crash
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 10-17-2018 , 15:43   Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
Reply With Quote #660

[Feature Request]

You could add a command type of {PRIVILEGES} - Flag "X".

Only in case we chose which flag wanted to display players only with this Flag in the chat.

This way you could display players online on the Moderator server or any other position we create.

It would be possible?
__________________
ABOUT-ME
Owner ZK Servidores

paulo_crash is offline
Send a message via Skype™ to paulo_crash
Reply


Thread Tools
Display Modes

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 04:07.


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