AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 05.04.2020* | *VERSION 3.1.4 (https://forums.alliedmods.net/showthread.php?t=248314)

hh2 08-29-2018 07:13

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
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;
    }
  } 


cytrus224 09-27-2018 14:45

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
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.

cytrus224 09-30-2018 05:09

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
Hey, can u add a command that would allow player to hide advertisements for him?

ESK0 09-30-2018 15:57

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

Originally Posted by cytrus224 (Post 2617398)
Hey, can u add a command that would allow player to hide advertisements for him?

Maybe if i will find some free time

paulo_crash 09-30-2018 17:00

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

Originally Posted by cytrus224 (Post 2617398)
Hey, can u add a command that would allow player to hide advertisements for him?

Quote:

Originally Posted by ESK0 (Post 2617521)
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.

paulo_crash 10-07-2018 23:28

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
It has the variable {SERVERIP}? Previous version had, not found in configuration.

ESK0 10-08-2018 00:35

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

Originally Posted by paulo_crash (Post 2618797)
It has the variable {SERVERIP}? Previous version had, not found in configuration.

wtf, check text variables in first post

paulo_crash 10-08-2018 00:37

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

Originally Posted by ESK0 (Post 2618803)
wtf, check text variables in first post

Sorry, I did not see it, thank you. :)

paulo_crash 10-08-2018 16:36

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
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?

paulo_crash 10-17-2018 14:43

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
[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?


All times are GMT -4. The time now is 16:51.

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