The requirements state CounterStrikeSharp v142 because I don't know which version the IPaddress property was added with, so I specified the version the plugin was compiled with. The compiled version is on GitHub . Note:
Compiled on Windows - CounterStrikeSharp v142.
Requirements
CounterStrikeSharp v142
MetaMod 2.0 - build 1278
Variables
"WelcomePlayerOneEnable":
{MAXPLAYERS} - View max players
{PLAYERNAME} - View player's name connecting to server;
{ENTER} - Next line
{STEAMID} - Player STEAMID
{IPUSER} - Player IP Address
{MAP} - Now map
{TIME} - Time(hh:mm:ss)
{DATE} - Date(dd.mm.yyyy)
{REASON} - the reason for logging out of the server
{SERVERNAME} - Hostname
{IP} - Server IP address
{PORT} - Server Port
{PLAYERS} - The current number of players on the server
"WelcomePlayerAllEnable":
{MAXPLAYERS} - View max players
{PLAYERNAME} - View player's name connecting to server;
{ENTER} - Next line
{STEAMID} - Player STEAMID
{IPUSER} - Player IP Address
{MAP} - Now map
{TIME} - Time(hh:mm:ss)
{DATE} - Date(dd.mm.yyyy)
{REASON} - the reason for logging out of the server
{SERVERNAME} - Hostname
{IP} - Server IP address
{PORT} - Server Port
{PLAYERS} - The current number of players on the server
"DisconnectPlayerAllEnable":
{MAXPLAYERS} - View max players
{PLAYERNAME} - View player's name connecting to server;
{ENTER} - Next line
{MAP} - Now map
{TIME} - Time(hh:mm:ss)
{DATE} - Date(dd.mm.yyyy)
{REASON} - the reason for logging out of the server
{SERVERNAME} - Hostname
{IP} - Server IP address
{PORT} - Server Port
{PLAYERS} - The current number of players on the server
Chat colors : {GREEN} {BLUE} {RED} {SILVER} {MAGENTA} {GOLD} {DEFAULT} {LIGHTBLUE} {LIGHTPURPLE} {LIGHTRED} {LIGHTYELLOW} {YELLOW} {GRAY} {LIME} {OLIVE} {ORANGE} {DARKRED} {DARKBLUE} {BLUEGREY} {PURPLE}
Installation
Create a folder for the plugin named Welcome.
The path should be: plugins/Welcome.
Next, copy all the files from the archive into the created folder. Also, don't forget to configure:
Config/Welcome/Welcome.json
https://hlmod.net/resources/welcome.4308/download{
"PluginName": "[Welcome] | ",
"Timer": 10, // Задержка приветсвия для одного игрока
"WelcomePlayerOneEnable": "true", // "true"|"1"/"false"|"0"
"WelcomePlayerAllEnable": "true", // "true"|"1"/"false"|"0"
"DisconnectPlayerAllEnable": "true", // "true"|"1"/"false"|"0"
"WelcomeText": " {RED}---------------------------------{ENTER} {LIGHTBLUE}Welcome on server {PLAYERNAME} {ENTER} Now map: {MAP} {ENTER} Players online: {PLAYERS}/{MAXPLAYERS} {ENTER} {RED}Your IP: {IPUSER} {ENTER} {RED}------------------------------ ", // Приветсвие для одного игрока
"disconnectAllText": " {RED} {PLAYERNAME} disconnect to reason: {REASON} ", // Уведомление о отключении игрока для всех
"WelcomeAllText": " {RED} {PLAYERNAME} connected to server {ENTER} His IP address: {IPUSER} ", // Уведомление о заходе игрока для всех
"ConfigVersion": 1
}

