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)

gildevanaraujo 11-27-2018 18:52

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

L 11/27/2018 - 21:47:44: [SM] Blaming: ServerAdvertisements3.smx
L 11/27/2018 - 21:47:44: [SM] Call stack trace:
L 11/27/2018 - 21:47:44: [SM]  [0] ThrowError
L 11/27/2018 - 21:47:44: [SM]  [1] Line 422, D:/Sourcemod/scripting/include\multicolors/colors.inc::C_Format
L 11/27/2018 - 21:47:44: [SM]  [2] Line 85, D:/Sourcemod/scripting/include\multicolors/colors.inc::C_PrintToChat
L 11/27/2018 - 21:47:44: [SM]  [3] Line 76, D:/Sourcemod/scripting/include\multicolors.inc::CPrintToChat
L 11/27/2018 - 21:47:44: [SM]  [4] Line 518, D:\Sourcemod\ServerAdvertisements3\ServerAdvertisements3.sp::Timer_PrintMessage

PHP Code:

"ServerAdvertisements3"
{
  
"Settings"
  
{
    
"ServerName" "[{orange}KINGDOM #1{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" "90" // 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
    
"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" "{olive}*************************************** \n{blue}Bem vindo ao KINGDOM #2 {PLAYERNAME}\n{orange}Divirta-se acima de tudo!! \n{olive}***************************************"
    "cz" ""
    "Delay" "5.0" 
// Time in seconds after is client connected to server to show message
    
  
}
  
"Messages"
  
{
    
"1"
    
{
      
"enabled" "1" // Message is temporarily disabled - Default: 1
      
"maps" "all"
      
//"enabledtill" "30.05.2017" // Date DD/MM/YYYY -> Message will be available till 30. May 2017
      
"maps" "all" //- Default: all
      
"en" "{green}MAPA: {default}{CURRENTMAP}\n{green}JOGADORES ON: {default}{PLAYERCOUNT}{green}\n{green}DISCORD: {default}discord.gg/7nWNMP6 \n{green}GRUPO STEAM: {default}https://steamcommunity.com/groups/kingdomservidores\n {green}IP: {default}kingdomserver.ddns.net:27018"
      "cz"  ""
      "type" "T"
      "tag" "[{darkred}AUTO{default}]"
    
}
    
"2"
    
{
      
"enabled" "1" // Message is enabled
      
"maps" "all"
      "en" "{green}Entre em nosso grupo da steam para acessar as skins disponiveis!\n{default}{red}https://steamcommunity.com/groups/kingdomservidores/ {green} para acessar as skins do servidor!"
      "cz"  ""
      "type" "T"
      "tag" "[{lightblue}AUTO{default}]"
    
}
    
"3"
     
{
      
"enabled" "1"
      "maps" "all"
      "en" "{default}COMANDOS DISPONIVEIS:\n {green}SKINS: {default}!ws \n {green}FACA: {default}!knife\n {green}LUVAS: {default}!luvas\n{default}Comando {red}Gloves {default}apenas para {green}VIP!"
      "cz"  ""
      "type" "T"
      "tag" "[{blue}COMANDOS{default}]" 
// Message wit 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
    
}
  }



HTML Code:

01 "Admin File Reader" (1.9.0.6261) by AlliedModders LLC
  02 "Admin Help" (1.9.0.6261) by AlliedModders LLC
  03 "Admin Menu" (1.9.0.6261) by AlliedModders LLC
  04 "Anti-Flood" (1.9.0.6261) by AlliedModders LLC
  05 "Basic Chat" (1.9.0.6261) by AlliedModders LLC
  06 "Basic Comm Control" (1.9.0.6261) by AlliedModders LLC
  07 "Basic Commands" (1.9.0.6261) by AlliedModders LLC
  08 "Basic Info Triggers" (1.9.0.6261) by AlliedModders LLC
  09 "Basic Votes" (1.9.0.6261) by AlliedModders LLC
  10 "Chat-Processor" (2.1.5) by Keith Warren (Shaders Allen)
  11 "Client Preferences" (1.9.0.6261) by AlliedModders LLC
  12 "Chat Processor - Simple Chat Processor Wrapper" (1.0.0) by Keith Warren (Shaders Allen)
  13 "Fun Commands" (1.9.0.6261) by AlliedModders LLC
  14 "Fun Votes" (1.9.0.6261) by AlliedModders LLC
  15 "Gloves" (1.0.3) by kgns | oyunhost.net
  16 "hextags" (1.41) by Hexah
  17 "Match Ban" (1.1.3) by TnTSCS aka ClarkKent
  18 "Nextmap" (1.9.0.6261) by AlliedModders LLC
  19 "Player Commands" (1.9.0.6261) by AlliedModders LLC
  20 "CS:GO PugSetup" (2.0.5) by splewis
  21 "CS:GO PugSetup: autokicker" (2.0.5) by splewis
  22 "CS:GO PugSetup: damage printer" (2.0.5) by splewis
  23 "CS:GO PugSetup: RWS balancer" (2.0.5) by splewis
  24 "Reserved Slots" (1.9.0.6261) by AlliedModders LLC
  25 "SourceBans++: Admin Config Loader" (1.6.3) by AlliedModders LLC, SourceBans++ Dev Team
  26 "SourceBans++: Bans Checker" (1.6.3) by psychonic, Ca$h Munny, SourceBans++ Dev Team
  27 "SourceBans++: SourceComms" (1.6.3) by Alex, SourceBans++ Dev Team
  28 "SourceBans++: Main Plugin" (1.6.3) by SourceBans Development Team, SourceBans++ Dev Team
  29 "SourceBans++ Report Plugin" (1.6.3) by RumbleFrog, SourceBans++ Dev Team
  30 "SourceBans++: SourceSleuth" (1.6.3) by ecca, SourceBans++ Dev Team
  31 "ServerAdvertisements3" (3.1.3) by ESK0
  32 "Sound Commands" (1.9.0.6261) by AlliedModders LLC
  33 "What's My SteamID" (1.0) by [HvG] Shitler
  34 "steamgroup.smx"
  35 "[SWGM] Command Listener" (1.1) by Someone
  36 "Steam Works Group Manager" (1.7) by Someone
  37 "[SWGM] Admin" (1.0) by Someone
  38 "[SWGM] Command Listener" (1.1) by Someone
  39 "tVip" (2.1) by Totenfluch
  40 "Weapons & Knives" (1.3.0) by kgns | oyunhost.net


Is there a problem with this setting?

The messages apparently only work at the warm-up time, after the game is live, the messages will stop appearing.

paulo_crash 11-29-2018 18:15

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
I wonder if it would be possible in the next updates to put the option of automatic response?

When some players type!! Steam,! Web the plugin returns to it a message configured by us, example.

If I want it to respond with my steam group set as follows:
Code:

!group
Then the plugin sends the configured message when he enters this command in chat.

It would be possible, or you already have some plugin that does this, I did not find anything... Only find those who would be to open the MOTD, but it does not work anymore.

Obyboby 11-30-2018 07:13

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

Originally Posted by paulo_crash (Post 2626115)
I wonder if it would be possible in the next updates to put the option of automatic response?

When some players type!! Steam,! Web the plugin returns to it a message configured by us, example.

If I want it to respond with my steam group set as follows:
Code:

!group
Then the plugin sends the configured message when he enters this command in chat.

It would be possible, or you already have some plugin that does this, I did not find anything... Only find those who would be to open the MOTD, but it does not work anymore.

Yeah I would like a plugin like that too, sending a ! trigger would make the plugin reply with a custom message
!rules, !discord, whatever that is

tzzion 11-30-2018 19:23

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

I think I have the plugin you're requesting Paulo.

A few months ago a friend was teaching me how to program in SourcePawn and helped me make a basic plugin of commands and phrases in the chat.

You type the command in the chat and the message appears to everyone.

Example: https://i.imgur.com/quA3yjR.png

The problem is that I do not know how to generate .cfg file. So to change the commands you need to edit directly in .sp and recompile the plugin.



PHP Code:

#pragma semicolon 1

#define DEBUG


#include <sourcemod>
#include <sdktools>

public Plugin myinfo 
{
    
name "tzz_comando",
    
author "tzz",
    
description "Plugin de comandos e frases",
    
version "3.0",
    
url "www.toxicbrasil.com"
};

public 
OnPluginStart()
{
    
RegConsoleCmd("sm_retake"retake"Ip retake");
    
RegConsoleCmd("sm_awp"awp"Ip awp");
    
RegConsoleCmd("sm_txbr"txbr"txbr");
    
RegConsoleCmd("sm_bhop"bhop"bhop");
    
RegConsoleCmd("sm_teammais"teammais"teammais");
    
RegConsoleCmd("sm_grupo"grupo"grupo");    
}

public 
Action:retake(clientargs)
{
    
PrintToChatAll(" \x04[TXBR] \x01IP do \x05RETAKE: \x07185.50.105.218:27160");
    
PrintToConsole(client"COMANDO PARA SE CONECTAR NO SERVIDOR --->> connect 185.50.105.218:27160");

    return 
Plugin_Handled;
}

public 
Action:awp(clientargs)
{
    
PrintToChatAll(" \x04[TXBR] \x01IP do servidor de \x05AWP: \x07185.50.105.218:27146");
    
PrintToConsole(client"COMANDO PARA SE CONECTAR NO SERVIDOR --->> connect 185.50.105.218:27146");    
    return 
Plugin_Handled;
}

public 
Action:txbr(clientargs)
{
    
PrintToChatAll(" \x04[TXBR] \x01Entre no nosso site - \x05toxicbrasil.com");
    return 
Plugin_Handled;
}

public 
Action:bhop(clientargs)
{
    
PrintToChatAll(" \x04[TXBR] \x01IP do servidor de \x05BHOP: \x07185.50.105.218:27106");
    
PrintToConsole(client"COMANDO PARA SE CONECTAR NO SERVIDOR --->> connect 185.50.105.218:27146");    
    return 
Plugin_Handled;
}

public 
Action:teammais(clientargs)
{
    
PrintToChatAll(" \x04[TXBR] \x01Acesse -> \x05www.teammais.com -\x01 Instagram -> \x05@teammais2");
    return 
Plugin_Handled;
}

public 
Action:grupo(clientargs)
{
    
PrintToChatAll(" \x04[TXBR] \x01Acesse nosso grupo da STEAM -> \x05https://steamcommunity.com/groups/BrasilToxic");
    return 
Plugin_Handled;


I do not know if I could post the .sp here. If it is not allowed I will delete it.

paulo_crash 11-30-2018 19:59

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

Originally Posted by tzzion (Post 2626219)
Hello everyone

I think I have the plugin you're requesting Paulo.

A few months ago a friend was teaching me how to program in SourcePawn and helped me make a basic plugin of commands and phrases in the chat.

You type the command in the chat and the message appears to everyone.

Example: https://i.imgur.com/quA3yjR.png

The problem is that I do not know how to generate .cfg file. So to change the commands you need to edit directly in .sp and recompile the plugin.

I do not know if I could post the .sp here. If it is not allowed I will delete it.

Thanks, would that be... I will be watching over them with some other members that I know to see if I can make updates on it to generate the config so that everything can be configured in this config?

Thank you again! :up:

Cruze 12-01-2018 00:59

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
https://forums.alliedmods.net/showthread.php?p=2392191

Lubricant Jam 12-01-2018 09:08

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
Would be nice if someone could make a randomiser for this, then this would practically be perfect for use (as well as MySQL).

ESK0 12-30-2018 10:16

Re: [ANY] ServerAdvertisement3 - MultiLang | *UPDATED 19.7.2017* | *VERSION 3.1.3
 
Big thanks to Bara for fixing memory leaks and etc... Link to his github fork on first page.

Mr. Man 12-30-2018 12:50

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

Originally Posted by ESK0 (Post 2631811)
Big thanks to Bara for fixing memory leaks and etc... Link to his github fork on first page.

Quick question - are you planning on supporting randomized messages in the future?

ESK0 12-30-2018 15:29

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

Originally Posted by Mr. Man (Post 2631837)
Quick question - are you planning on supporting randomized messages in the future?

Not really sure about this.. :)


All times are GMT -4. The time now is 10:55.

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