Klayeryt / Welcome

CS2 Plugin C#
30 stars 3 forks source link

Welcome

CS2 Plugin C#

EN - Language

Create a folder for the plugin called Welcome

plugins/Welcome

Config/Welcome/Welcome.json

{
  "PluginName": "[Welcome] | ",
  "Timer": 10, // Welcome delay
  "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}------------------------------ ", // Greeting for one player
  "disconnectAllText": " {RED} {PLAYERNAME} disconnect to reason: {REASON} ", // The message is all when the player is disconnected
  "WelcomeAllText": " {RED} {PLAYERNAME} connected to server {ENTER} His IP address: {IPUSER} ", // Announcement of the player's entry
  "ConfigVersion": 1
}

Installation

Build:

Collect your own:

Variables:

"WelcomePlayerOneEnable":

"WelcomePlayerAllEnable":

"DisconnectPlayerAllEnable":

Colors: {GREEN} {BLUE} {RED} {SILVER} {MAGENTA} {GOLD} {DEFAULT} {LIGHTBLUE} {LIGHTPURPLE} {LIGHTRED} {LIGHTYELLOW} {YELLOW} {GREY} {LIME} {OLIVE} {ORANGE} {DARKRED} {DARKBLUE} {BLUEGREY} {PURPLE}

Future plans:


RU - Language

Создайте папку для плагина с названием Welcome

plugins/Welcome

Config/Welcome/Welcome.json

{
  "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
}

Переменные:

"WelcomePlayerOneEnable":

"WelcomePlayerAllEnable":

"DisconnectPlayerAllEnable":

Цвета для чата: {GREEN} {BLUE} {RED} {SILVER} {MAGENTA} {GOLD} {DEFAULT} {LIGHTBLUE} {LIGHTPURPLE} {LIGHTRED} {LIGHTYELLOW} {YELLOW} {GREY} {LIME} {OLIVE} {ORANGE} {DARKRED} {DARKBLUE} {BLUEGREY} {PURPLE}

Планируется в будущем:

F.A.Q

Q: If the plugin doesn't work?

A: Check the operating system, and update the cssharp kernel in the plugin(counterstrikesharp.dll)