mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-12 01:01:22 +00:00
Compare commits
19 Commits
build-336
...
e48308f8af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e48308f8af | ||
|
|
2fcf5d7caa | ||
|
|
ea9963b920 | ||
|
|
4a5a08aca9 | ||
|
|
573604a9d9 | ||
|
|
3929a43e46 | ||
|
|
f7f18b7919 | ||
|
|
0d110d83c7 | ||
|
|
db20e2eef9 | ||
|
|
536cea96d6 | ||
|
|
84684f4a26 | ||
|
|
48b9679236 | ||
|
|
7493ee4c7f | ||
|
|
027a547052 | ||
|
|
686c225f4f | ||
|
|
a5397e3831 | ||
|
|
1b95ddb089 | ||
|
|
7d4078dc40 | ||
|
|
e3011c51ae |
49
Commands.cs
49
Commands.cs
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Concurrent;
|
||||
using CounterStrikeSharp.API;
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Modules.Commands;
|
||||
using CounterStrikeSharp.API.Modules.Menu;
|
||||
@@ -106,6 +107,16 @@ public partial class WeaponPaints
|
||||
|
||||
private void RegisterCommands()
|
||||
{
|
||||
_config.Additional.CommandStattrak.ForEach(c =>
|
||||
{
|
||||
AddCommand($"css_{c}", "Stattrak toggle", (player, info) =>
|
||||
{
|
||||
if (!Utility.IsPlayerValid(player)) return;
|
||||
|
||||
OnCommandStattrak(player, info);
|
||||
});
|
||||
});
|
||||
|
||||
_config.Additional.CommandSkin.ForEach(c =>
|
||||
{
|
||||
AddCommand($"css_{c}", "Skins info", (player, info) =>
|
||||
@@ -138,6 +149,30 @@ public partial class WeaponPaints
|
||||
}
|
||||
}
|
||||
|
||||
private void OnCommandStattrak(CCSPlayerController? player, CommandInfo commandInfo)
|
||||
{
|
||||
if (player == null || !player.IsValid) return;
|
||||
|
||||
if (!GPlayerWeaponsInfo.TryGetValue(player.Slot, out var teamInfo) ||
|
||||
!teamInfo.TryGetValue(player.Team, out var teamWeapons) )
|
||||
return;
|
||||
|
||||
var weapon = player.PlayerPawn.Value?.WeaponServices?.ActiveWeapon.Value;
|
||||
|
||||
if (weapon == null || !weapon.IsValid)
|
||||
return;
|
||||
if (!teamWeapons.TryGetValue(weapon.AttributeManager.Item.ItemDefinitionIndex, out var teamWeapon))
|
||||
return;
|
||||
|
||||
teamWeapon.StatTrak = !teamWeapon.StatTrak;
|
||||
RefreshWeapons(player);
|
||||
|
||||
if (!string.IsNullOrEmpty(Localizer["wp_stattrak_action"]))
|
||||
{
|
||||
player.Print(Localizer["wp_stattrak_action"]);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetupKnifeMenu()
|
||||
{
|
||||
if (!Config.Additional.KnifeEnabled || !_gBCommandsAllowed) return;
|
||||
@@ -146,7 +181,7 @@ public partial class WeaponPaints
|
||||
.Where(pair => pair.Key.StartsWith("weapon_knife") || pair.Key.StartsWith("weapon_bayonet"))
|
||||
.ToDictionary(pair => pair.Key, pair => pair.Value);
|
||||
|
||||
var giveItemMenu = MenuApi?.NewMenu(Localizer["wp_knife_menu_title"]);
|
||||
var giveItemMenu = Utility.CreateMenu(Localizer["wp_knife_menu_title"]);
|
||||
|
||||
var handleGive = (CCSPlayerController player, ChatMenuOption option) =>
|
||||
{
|
||||
@@ -230,7 +265,7 @@ public partial class WeaponPaints
|
||||
.Except([new KeyValuePair<string, string>("weapon_knife", "Default Knife")])
|
||||
.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
|
||||
|
||||
var weaponSelectionMenu = MenuApi?.NewMenu(Localizer["wp_skin_menu_weapon_title"]);
|
||||
var weaponSelectionMenu = Utility.CreateMenu(Localizer["wp_skin_menu_weapon_title"]);
|
||||
|
||||
// Function to handle skin selection for a specific weapon
|
||||
var handleWeaponSelection = (CCSPlayerController? player, ChatMenuOption option) =>
|
||||
@@ -245,7 +280,7 @@ public partial class WeaponPaints
|
||||
weaponName?.ToString() == selectedWeaponClassname
|
||||
)?.ToList();
|
||||
|
||||
var skinSubMenu = MenuApi?.NewMenu(Localizer["wp_skin_menu_skin_title", selectedWeapon]);
|
||||
var skinSubMenu = Utility.CreateMenu(Localizer["wp_skin_menu_skin_title", selectedWeapon]);
|
||||
|
||||
// Function to handle skin selection for the chosen weapon
|
||||
var handleSkinSelection = (CCSPlayerController p, ChatMenuOption opt) =>
|
||||
@@ -381,7 +416,7 @@ public partial class WeaponPaints
|
||||
|
||||
private void SetupGlovesMenu()
|
||||
{
|
||||
var glovesSelectionMenu = MenuApi?.NewMenu(Localizer["wp_glove_menu_title"]);
|
||||
var glovesSelectionMenu = Utility.CreateMenu(Localizer["wp_glove_menu_title"]);
|
||||
if (glovesSelectionMenu == null) return;
|
||||
glovesSelectionMenu.PostSelectAction = PostSelectAction.Close;
|
||||
|
||||
@@ -590,7 +625,7 @@ public partial class WeaponPaints
|
||||
if (!CommandsCooldown.TryGetValue(player.Slot, out DateTime cooldownEndTime) ||
|
||||
DateTime.UtcNow >= (CommandsCooldown.TryGetValue(player.Slot, out cooldownEndTime) ? cooldownEndTime : DateTime.UtcNow))
|
||||
{
|
||||
var agentsSelectionMenu = MenuApi?.NewMenu(Localizer["wp_agent_menu_title"]);
|
||||
var agentsSelectionMenu = Utility.CreateMenu(Localizer["wp_agent_menu_title"]);
|
||||
if (agentsSelectionMenu == null) return;
|
||||
agentsSelectionMenu.PostSelectAction = PostSelectAction.Close;
|
||||
|
||||
@@ -630,7 +665,7 @@ public partial class WeaponPaints
|
||||
|
||||
private void SetupMusicMenu()
|
||||
{
|
||||
var musicSelectionMenu = MenuApi?.NewMenu(Localizer["wp_music_menu_title"]);
|
||||
var musicSelectionMenu = Utility.CreateMenu(Localizer["wp_music_menu_title"]);
|
||||
if (musicSelectionMenu == null) return;
|
||||
musicSelectionMenu.PostSelectAction = PostSelectAction.Close;
|
||||
|
||||
@@ -765,7 +800,7 @@ public partial class WeaponPaints
|
||||
|
||||
private void SetupPinsMenu()
|
||||
{
|
||||
var pinsSelectionMenu = MenuApi?.NewMenu(Localizer["wp_pins_menu_title"]);
|
||||
var pinsSelectionMenu = Utility.CreateMenu(Localizer["wp_pins_menu_title"]);
|
||||
if (pinsSelectionMenu == null) return;
|
||||
pinsSelectionMenu.PostSelectAction = PostSelectAction.Close;
|
||||
|
||||
|
||||
10
Config.cs
10
Config.cs
@@ -43,6 +43,9 @@ namespace WeaponPaints
|
||||
|
||||
[JsonPropertyName("CommandAgent")]
|
||||
public List<string> CommandAgent { get; set; } = ["agents"];
|
||||
|
||||
[JsonPropertyName("CommandStattrak")]
|
||||
public List<string> CommandStattrak { get; set; } = ["stattrak", "st"];
|
||||
|
||||
[JsonPropertyName("CommandSkin")]
|
||||
public List<string> CommandSkin { get; set; } = ["ws"];
|
||||
@@ -68,7 +71,7 @@ namespace WeaponPaints
|
||||
|
||||
public class WeaponPaintsConfig : BasePluginConfig
|
||||
{
|
||||
[JsonPropertyName("ConfigVersion")] public override int Version { get; set; } = 9;
|
||||
[JsonPropertyName("ConfigVersion")] public override int Version { get; set; } = 10;
|
||||
|
||||
[JsonPropertyName("SkinsLanguage")]
|
||||
public string SkinsLanguage { get; set; } = "en";
|
||||
@@ -89,12 +92,15 @@ namespace WeaponPaints
|
||||
public string DatabaseName { get; set; } = "";
|
||||
|
||||
[JsonPropertyName("CmdRefreshCooldownSeconds")]
|
||||
public int CmdRefreshCooldownSeconds { get; set; } = 10;
|
||||
public int CmdRefreshCooldownSeconds { get; set; } = 3;
|
||||
|
||||
[JsonPropertyName("Website")]
|
||||
public string Website { get; set; } = "example.com/skins";
|
||||
|
||||
[JsonPropertyName("Additional")]
|
||||
public Additional Additional { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("MenuType")]
|
||||
public string MenuType { get; set; } = "selectable";
|
||||
}
|
||||
}
|
||||
42
Events.cs
42
Events.cs
@@ -2,6 +2,7 @@
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Core.Attributes.Registration;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
using CounterStrikeSharp.API.Modules.Entities.Constants;
|
||||
using CounterStrikeSharp.API.Modules.Memory;
|
||||
using CounterStrikeSharp.API.Modules.Memory.DynamicFunctions;
|
||||
|
||||
@@ -79,13 +80,17 @@ namespace WeaponPaints
|
||||
IpAddress = player.IpAddress?.Split(":")[0]
|
||||
};
|
||||
|
||||
if (WeaponSync != null)
|
||||
_ = Task.Run(async () => await WeaponSync.SyncStatTrakToDatabase(playerInfo));
|
||||
|
||||
if (Config.Additional.SkinEnabled)
|
||||
Task.Run(async () =>
|
||||
{
|
||||
GPlayerWeaponsInfo.TryRemove(player.Slot, out _);
|
||||
}
|
||||
if (WeaponSync != null)
|
||||
await WeaponSync.SyncStatTrakToDatabase(playerInfo);
|
||||
|
||||
if (Config.Additional.SkinEnabled)
|
||||
{
|
||||
GPlayerWeaponsInfo.TryRemove(player.Slot, out _);
|
||||
}
|
||||
});
|
||||
|
||||
if (Config.Additional.KnifeEnabled)
|
||||
{
|
||||
GPlayersKnife.TryRemove(player.Slot, out _);
|
||||
@@ -106,7 +111,7 @@ namespace WeaponPaints
|
||||
{
|
||||
GPlayersPin.TryRemove(player.Slot, out _);
|
||||
}
|
||||
|
||||
|
||||
_temporaryPlayerWeaponWear.TryRemove(player.Slot, out _);
|
||||
CommandsCooldown.Remove(player.Slot);
|
||||
|
||||
@@ -116,9 +121,12 @@ namespace WeaponPaints
|
||||
private void OnMapStart(string mapName)
|
||||
{
|
||||
if (Config.Additional is { KnifeEnabled: false, SkinEnabled: false, GloveEnabled: false }) return;
|
||||
|
||||
|
||||
if (Database != null)
|
||||
WeaponSync = new WeaponSynchronization(Database, Config);
|
||||
|
||||
_fadeSeed = 0;
|
||||
_nextItemId = MinimumCustomItemId;
|
||||
}
|
||||
|
||||
private HookResult OnPlayerSpawn(EventPlayerSpawn @event, GameEventInfo info)
|
||||
@@ -197,7 +205,17 @@ namespace WeaponPaints
|
||||
|
||||
var player = GetPlayerFromItemServices(itemServices);
|
||||
if (player != null)
|
||||
{
|
||||
var weaponServices = player.PlayerPawn.Value?.WeaponServices;
|
||||
|
||||
GivePlayerWeaponSkin(player, weapon);
|
||||
|
||||
if (weaponServices is { MyWeapons.Count: 1 })
|
||||
{
|
||||
// player.GiveNamedItem(CsItem.Healthshot);
|
||||
// newWeapon.AddEntityIOEvent("Kill", newWeapon, null, "", 0.1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
@@ -269,9 +287,10 @@ namespace WeaponPaints
|
||||
[GameEventHandler]
|
||||
public HookResult OnItemPickup(EventItemPickup @event, GameEventInfo _)
|
||||
{
|
||||
if (!IsWindows) return HookResult.Continue;
|
||||
|
||||
// if (!IsWindows) return HookResult.Continue;
|
||||
var player = @event.Userid;
|
||||
if (!@event.Item.Contains("knife")) return HookResult.Continue;
|
||||
|
||||
if (player != null && player is { IsValid: true, Connected: PlayerConnectedState.PlayerConnected, PawnIsAlive: true, PlayerPawn.IsValid: true })
|
||||
{
|
||||
GiveOnItemPickup(player);
|
||||
@@ -331,8 +350,7 @@ namespace WeaponPaints
|
||||
if (Config.Additional.ShowSkinImage)
|
||||
RegisterListener<Listeners.OnTick>(OnTick);
|
||||
|
||||
if (!IsWindows)
|
||||
VirtualFunctions.GiveNamedItemFunc.Hook(OnGiveNamedItemPost, HookMode.Post);
|
||||
VirtualFunctions.GiveNamedItemFunc.Hook(OnGiveNamedItemPost, HookMode.Post);
|
||||
}
|
||||
}
|
||||
}
|
||||
138
README.md
138
README.md
@@ -1,20 +1,36 @@
|
||||
# CS2 Weapon Paints
|
||||
```
|
||||
|
||||
## Description
|
||||
__ __ ___ _ _
|
||||
/ / /\ \ \___ __ _ _ __ ___ _ __ / _ \__ _(_)_ __ | |_ ___
|
||||
\ \/ \/ / _ \/ _` | '_ \ / _ \| '_ \ / /_)/ _` | | '_ \| __/ __|
|
||||
\ /\ / __/ (_| | |_) | (_) | | | / ___/ (_| | | | | | |_\__ \
|
||||
\/ \/ \___|\__,_| .__/ \___/|_| |_\/ \__,_|_|_| |_|\__|___/
|
||||
|_|
|
||||
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/Nereziel/cs2-WeaponPaints/releases">📖 Releases</a> •
|
||||
<a href="https://discord.gg/d9CvaYPSFe">💬 Discord</a>
|
||||
<br /><br />
|
||||
</p>
|
||||
<hr />
|
||||
|
||||
## 📝 Description
|
||||
Unfinished, unoptimized and not fully functional ugly demo weapon paints plugin for **[CSSharp](https://docs.cssharp.dev/docs/guides/getting-started.html)**.
|
||||
|
||||
## Created [Discord server](https://discord.gg/d9CvaYPSFe) where you can discuss about plugin.
|
||||
|
||||
### Consider to donate instead of buying from unknown sources.
|
||||
### 💸 Consider to donate instead of buying from unknown sources.
|
||||
[](https://ko-fi.com/E1E2G0P2O) or [](https://steamcommunity.com/tradeoffer/new/?partner=41515647&token=gW2W-nXE)
|
||||
|
||||
## Features
|
||||
## ✨ Features
|
||||
- Changes only paint, seed and wear on weapons, knives, gloves and agents
|
||||
- MySQL based
|
||||
- Data syncs on player connect
|
||||
- Added command **`!wp`** to refresh skins ***(with cooldown in seconds can be configured)***
|
||||
- Added command **`!ws`** to show website
|
||||
- Added command **`!knife`** to show menu with knives
|
||||
- Added command **`!stattrak`** to enable stattrak on weapon
|
||||
- Added command **`!gloves`** to show menu with gloves
|
||||
- Added command **`!agents`** to show menu with agents
|
||||
- Added command **`!pins`** to show menu with pins
|
||||
@@ -29,7 +45,7 @@ Unfinished, unoptimized and not fully functional ugly demo weapon paints plugin
|
||||
- [MenuManagerCS2](https://github.com/NickFox007/MenuManagerCS2)
|
||||
- MySQL database
|
||||
|
||||
## CS2 Server
|
||||
## 🗄️ CS2 Server
|
||||
- Have working CounterStrikeSharp (**with RUNTIME!**)
|
||||
- Download from Release and copy plugin to plugins
|
||||
- Run server with plugin, **it will generate config if installed correctly!**
|
||||
@@ -37,49 +53,72 @@ Unfinished, unoptimized and not fully functional ugly demo weapon paints plugin
|
||||
- In `addons/counterstrikesharp/configs/`**`core.json`** set **FollowCS2ServerGuidelines** to **`false`**
|
||||
- Copy from plugins folder gamedata file **`weaponpaints.json`** to folder **`addons/counterstrikesharp/gamedata/`**
|
||||
|
||||
## Plugin Configuration
|
||||
## 🛠️ Plugin Configuration
|
||||
<details>
|
||||
<summary>Click to expand</summary>
|
||||
<code><pre>{
|
||||
"Version": 4, // Don't touch
|
||||
"DatabaseHost": "", // MySQL host
|
||||
"DatabasePort": 3306, // MySQL port
|
||||
"DatabaseUser": "", // MySQL username
|
||||
"DatabasePassword": "", // MySQL user password
|
||||
"DatabaseName": "", // MySQL database name
|
||||
"CmdRefreshCooldownSeconds": 60, // Cooldown time in refreshing skins (!wp command)
|
||||
"Prefix": "[WeaponPaints]", // Prefix every chat message
|
||||
"Website": "example.com/skins", // Website used in WebsiteMessageCommand (!ws command)
|
||||
"Messages": {
|
||||
"WebsiteMessageCommand": "Visit {WEBSITE} where you can change skins.", // Information about website where player can change skins (!ws command) Set to empty to disable
|
||||
"SynchronizeMessageCommand": "Type !wp to synchronize chosen skins.", // Information about skins refreshing (!ws command) Set to empty to disable
|
||||
"KnifeMessageCommand": "Type !knife to open knife menu.", // Information about knife menu (!ws command) Set to empty to disable
|
||||
"CooldownRefreshCommand": "You can\u0027t refresh weapon paints right now.", // Cooldown information (!wp command) Set to empty to disable
|
||||
"SuccessRefreshCommand": "Refreshing weapon paints.", // Information about refreshing skins (!wp command) Set to empty to disable
|
||||
"ChosenKnifeMenu": "You have chosen {KNIFE} as your knife.", // Information about choosen knife (!knife command) Set to empty to disable
|
||||
"ChosenSkinMenu": "You have chosen {SKIN} as your skin.", // Information about choosen skin (!skins command) Set to empty to disable
|
||||
"ChosenKnifeMenuKill": "To correctly apply skin for knife, you need to type !kill.", // Information about suicide after knife selection (!knife command) Set to empty to disable
|
||||
"KnifeMenuTitle": "Knife Menu.", // Menu title (!knife menu)
|
||||
"WeaponMenuTitle": "Weapon Menu.", // Menu title (!skins menu)
|
||||
"SkinMenuTitle": "Select skin for {WEAPON}" // Menu title (!skins menu, after weapon select)
|
||||
},
|
||||
"Additional": {
|
||||
"KnifeEnabled": true, // Enable or disable knife feature
|
||||
"SkinEnabled": true, // Enable or disable skin feature
|
||||
"CommandWpEnabled": true, // Enable or disable refreshing command
|
||||
"CommandKillEnabled": true, // Enable or disable kill command
|
||||
"CommandKnife": "knife", // Name of knife menu command, u can change to for e.g, knives
|
||||
"CommandSkin": "ws", // Name of skin information command, u can change to for e.g, skins
|
||||
"CommandSkinSelection": "skins", // Name of skins menu command, u can change to for e.g, weapons
|
||||
"CommandRefresh": "wp", // Name of skin refreshing command, u can change to for e.g, refreshskins
|
||||
"CommandKill": "kill", // Name of kill command, u can change to for e.g, suicide
|
||||
"GiveRandomKnife": false, // Give random knife to players if they didn't choose
|
||||
"GiveRandomSkins": false // Give random skins to players if they didn't choose
|
||||
},
|
||||
"ConfigVersion": 10, // Don't touch
|
||||
"SkinsLanguage": "en", // Language
|
||||
"DatabaseHost": "", // MySQL host
|
||||
"DatabasePort": 3306, // MySQL Port
|
||||
"DatabaseUser": "", // MySQL Username
|
||||
"DatabasePassword": "", // MySQL User password
|
||||
"DatabaseName": "", // MySQL Database name
|
||||
"CmdRefreshCooldownSeconds": 3, // Cooldown time in refreshing skins (!wp command)
|
||||
"Website": "example.com/skins", // Website used in WebsiteMessageCommand (!ws command)
|
||||
"Additional": {
|
||||
"KnifeEnabled": true, // If knives are enabled
|
||||
"GloveEnabled": true, // If gloves are enabled
|
||||
"MusicEnabled": true, // If music kits are enabled
|
||||
"AgentEnabled": true, // If agents are enabled
|
||||
"SkinEnabled": true, // If skins are enabled
|
||||
"PinsEnabled": true, // If pins are enabled
|
||||
"CommandWpEnabled": true, // If command !wp is enabled
|
||||
"CommandKillEnabled": true, // If command !kill is enabled
|
||||
"CommandKnife": [ // Command for knives
|
||||
"knife"
|
||||
],
|
||||
"CommandMusic": [ // Command for music kits
|
||||
"music"
|
||||
],
|
||||
"CommandPin": [ // Command for pins
|
||||
"pin",
|
||||
"pins",
|
||||
"coin",
|
||||
"coins"
|
||||
],
|
||||
"CommandGlove": [ // Command for gloves
|
||||
"gloves"
|
||||
],
|
||||
"CommandAgent": [ // Command for agents
|
||||
"agents"
|
||||
],
|
||||
"CommandStattrak": [ // Command for stattrak
|
||||
"stattrak",
|
||||
"st"
|
||||
],
|
||||
"CommandSkin": [ // Command for skins
|
||||
"ws"
|
||||
],
|
||||
"CommandSkinSelection": [ // Command for skin selection
|
||||
"skins"
|
||||
],
|
||||
"CommandRefresh": [ // Command for refreshing your skins
|
||||
"wp"
|
||||
],
|
||||
"CommandKill": [ // Command for death
|
||||
"kill"
|
||||
],
|
||||
"GiveRandomKnife": false, // If it should give you Random Knife
|
||||
"GiveRandomSkin": false, // If it should give you Random Skin
|
||||
"ShowSkinImage": true // When you select a skin if it should show skins image
|
||||
},
|
||||
"MenuType": "selectable" // Menu type commands. Can be: selectable, dynamic, center, chat, console
|
||||
}
|
||||
</pre></code>
|
||||
</details>
|
||||
|
||||
## Web install
|
||||
## 🖥️ Web install
|
||||
- Requires PHP >= 7.4 with curl and pdo_mysql ***(Tested on php ver **`8.2.3`** and nginx webserver)***
|
||||
- **Before using website, make sure the plugin is correctly loaded in cs2 server!** Mysql tables are created by plugin not by website.
|
||||
- Copy website to web server ***(Folder `img` not needed)***
|
||||
@@ -87,12 +126,19 @@ Unfinished, unoptimized and not fully functional ugly demo weapon paints plugin
|
||||
- Fill in database credentials and api key in `class/config.php`
|
||||
- Visit website and login via steam
|
||||
|
||||
## Web Features
|
||||
## 🧩 Web Features
|
||||
> [!WARNING]
|
||||
> We recommend you to use any third-party website for WeaponPaints. Website by us doesn't get updated!
|
||||
- Basic website
|
||||
- Steam login/logout
|
||||
- Change knife, paint, seed and wear
|
||||
|
||||
## Troubleshooting
|
||||
## 🌐 Third-party websites
|
||||
- **[CSS-Bans](https://github.com/counterstrikesharp-panel/css-bans)**
|
||||
- **[CS2-WeaponPaints-Website](https://github.com/LielXD/CS2-WeaponPaints-Website)**
|
||||
- **[cs2-WeaponPaints-website](https://github.com/L1teD/cs2-WeaponPaints-website)** > This webiste is different from the one above!
|
||||
- **[CS2-WeaponPaints-Web](https://github.com/rogeraabbccdd/CS2-WeaponPaints-Web)**
|
||||
## 🤔 Troubleshooting
|
||||
<details>
|
||||
**Skins are not changing:**
|
||||
Set FollowCSGOGuidelines to false in cssharp’s core.jcon config
|
||||
@@ -104,5 +150,5 @@ Plugin is not loaded or configured with mysql credentials. Tables are auto-creat
|
||||
|
||||
### Use this plugin at your own risk! Using this may lead to GSLT ban or something else Valve come with. [Valve Server guidelines](https://blog.counter-strike.net/index.php/server_guidelines/)
|
||||
|
||||
## Preview
|
||||
## Website Preview
|
||||

|
||||
|
||||
30
Utility.cs
30
Utility.cs
@@ -1,6 +1,8 @@
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Core.Translations;
|
||||
using CounterStrikeSharp.API.Modules.Menu;
|
||||
using Dapper;
|
||||
using MenuManager;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -188,10 +190,32 @@ namespace WeaponPaints
|
||||
Console.WriteLine("[WeaponPaints] " + message);
|
||||
Console.ResetColor();
|
||||
}
|
||||
|
||||
internal static string ReplaceTags(string message)
|
||||
|
||||
internal static IMenu? CreateMenu(string title)
|
||||
{
|
||||
return message.ReplaceColorTags();
|
||||
var menuType = WeaponPaints.Instance.Config.MenuType.ToLower();
|
||||
|
||||
var menu = menuType switch
|
||||
{
|
||||
_ when menuType.Equals("selectable", StringComparison.CurrentCultureIgnoreCase) =>
|
||||
WeaponPaints.MenuApi?.NewMenu(title),
|
||||
|
||||
_ when menuType.Equals("dynamic", StringComparison.CurrentCultureIgnoreCase) =>
|
||||
WeaponPaints.MenuApi?.NewMenuForcetype(title, MenuType.ButtonMenu),
|
||||
|
||||
_ when menuType.Equals("center", StringComparison.CurrentCultureIgnoreCase) =>
|
||||
WeaponPaints.MenuApi?.NewMenuForcetype(title, MenuType.CenterMenu),
|
||||
|
||||
_ when menuType.Equals("chat", StringComparison.CurrentCultureIgnoreCase) =>
|
||||
WeaponPaints.MenuApi?.NewMenuForcetype(title, MenuType.ChatMenu),
|
||||
|
||||
_ when menuType.Equals("console", StringComparison.CurrentCultureIgnoreCase) =>
|
||||
WeaponPaints.MenuApi?.NewMenuForcetype(title, MenuType.ConsoleMenu),
|
||||
|
||||
_ => WeaponPaints.MenuApi?.NewMenu(title)
|
||||
};
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
internal static async Task CheckVersion(string version, ILogger logger)
|
||||
|
||||
@@ -77,7 +77,8 @@ public partial class WeaponPaints
|
||||
internal static readonly ConcurrentDictionary<int, ConcurrentDictionary<CsTeam, ushort>> GPlayersGlove = new();
|
||||
internal static readonly ConcurrentDictionary<int, ConcurrentDictionary<CsTeam, ushort>> GPlayersMusic = new();
|
||||
internal static readonly ConcurrentDictionary<int, ConcurrentDictionary<CsTeam, ushort>> GPlayersPin = new();
|
||||
public static readonly ConcurrentDictionary<int, (string? CT, string? T)> GPlayersAgent = new();
|
||||
internal static readonly ConcurrentDictionary<int, (string? CT, string? T)> GPlayersAgent = new();
|
||||
internal static readonly Dictionary<int, int> GPlayersKnivesPickup = [];
|
||||
internal static readonly ConcurrentDictionary<int, ConcurrentDictionary<CsTeam, ConcurrentDictionary<int, WeaponInfo>>> GPlayerWeaponsInfo = new();
|
||||
internal static List<JObject> SkinsList = [];
|
||||
internal static List<JObject> PinsList = [];
|
||||
@@ -92,7 +93,7 @@ public partial class WeaponPaints
|
||||
internal static Database? Database;
|
||||
|
||||
private static readonly MemoryFunctionVoid<nint, string, float> CAttributeListSetOrAddAttributeValueByName = new(GameData.GetSignature("CAttributeList_SetOrAddAttributeValueByName"));
|
||||
|
||||
|
||||
private static readonly MemoryFunctionWithReturn<nint, string, int, int> SetBodygroupFunc = new(
|
||||
GameData.GetSignature("CBaseModelEntity_SetBodygroup"));
|
||||
|
||||
@@ -165,4 +166,6 @@ public partial class WeaponPaints
|
||||
|
||||
internal static IMenuApi? MenuApi;
|
||||
private static readonly PluginCapability<IMenuApi> MenuCapability = new("menu:nfcore");
|
||||
|
||||
private int _fadeSeed;
|
||||
}
|
||||
@@ -36,11 +36,15 @@ namespace WeaponPaints
|
||||
weapon.AttributeManager.Item.ItemDefinitionIndex = (ushort)newDefIndex.Key;
|
||||
weapon.AttributeManager.Item.EntityQuality = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
weapon.AttributeManager.Item.EntityQuality = 0;
|
||||
}
|
||||
|
||||
UpdatePlayerEconItemId(weapon.AttributeManager.Item);
|
||||
|
||||
int weaponDefIndex = weapon.AttributeManager.Item.ItemDefinitionIndex;
|
||||
int fallbackPaintKit = 0;
|
||||
int fallbackPaintKit;
|
||||
|
||||
weapon.AttributeManager.Item.AccountID = (uint)player.SteamID;
|
||||
|
||||
@@ -81,7 +85,11 @@ namespace WeaponPaints
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GPlayerWeaponsInfo[player.Slot][player.Team].TryGetValue(weaponDefIndex, out var value) || value.Paint == 0) return;
|
||||
if (!GPlayerWeaponsInfo.TryGetValue(player.Slot, out var teamInfo) ||
|
||||
!teamInfo.TryGetValue(player.Team, out var teamWeapons) )
|
||||
return;
|
||||
if (!teamWeapons.TryGetValue(weaponDefIndex, out var value))
|
||||
return;
|
||||
|
||||
var weaponInfo = value;
|
||||
//Log($"Apply on {weapon.DesignerName}({weapon.AttributeManager.Item.ItemDefinitionIndex}) paint {gPlayerWeaponPaints[steamId.SteamId64][weapon.AttributeManager.Item.ItemDefinitionIndex]} seed {gPlayerWeaponSeed[steamId.SteamId64][weapon.AttributeManager.Item.ItemDefinitionIndex]} wear {gPlayerWeaponWear[steamId.SteamId64][weapon.AttributeManager.Item.ItemDefinitionIndex]}");
|
||||
@@ -94,12 +102,23 @@ namespace WeaponPaints
|
||||
weapon.AttributeManager.Item.ItemIDHigh = weapon.AttributeManager.Item.ItemIDLow >> 32;
|
||||
weapon.AttributeManager.Item.CustomName = weaponInfo.Nametag;
|
||||
weapon.FallbackPaintKit = weaponInfo.Paint;
|
||||
weapon.FallbackSeed = weaponInfo.Seed;
|
||||
|
||||
if (weaponInfo is { Paint: 38, Seed: 0 })
|
||||
{
|
||||
weapon.FallbackSeed = _fadeSeed++;
|
||||
}
|
||||
else
|
||||
{
|
||||
weapon.FallbackSeed = weaponInfo.Seed;
|
||||
}
|
||||
|
||||
weapon.FallbackWear = weaponInfo.Wear;
|
||||
CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle, "set item texture prefab", weapon.FallbackPaintKit);
|
||||
|
||||
if (weaponInfo.StatTrak)
|
||||
{
|
||||
{
|
||||
weapon.AttributeManager.Item.EntityQuality = 9;
|
||||
|
||||
CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle, "kill eater", ViewAsFloat((uint)weaponInfo.StatTrakCount));
|
||||
CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle, "kill eater score type", 0);
|
||||
|
||||
@@ -112,8 +131,6 @@ namespace WeaponPaints
|
||||
if (fallbackPaintKit == 0)
|
||||
return;
|
||||
|
||||
if (isKnife) return;
|
||||
|
||||
if (weaponInfo.KeyChain != null) SetKeychain(player, weapon);
|
||||
if (weaponInfo.Stickers.Count > 0) SetStickers(player, weapon);
|
||||
|
||||
@@ -124,6 +141,7 @@ namespace WeaponPaints
|
||||
.ToList();
|
||||
|
||||
isLegacyModel = skinInfo.Count <= 0 || skinInfo[0].Value<bool>("legacy_model");
|
||||
|
||||
UpdatePlayerWeaponMeshGroupMask(player, weapon, isLegacyModel);
|
||||
}
|
||||
|
||||
@@ -223,6 +241,7 @@ namespace WeaponPaints
|
||||
|
||||
//string knifeToGive = (CsTeam)player.TeamNum == CsTeam.Terrorist ? "weapon_knife_t" : "weapon_knife";
|
||||
player.GiveNamedItem(CsItem.Knife);
|
||||
Utilities.SetStateChanged(player, "CCSPlayerController", "m_pInventoryServices");
|
||||
}
|
||||
|
||||
private static bool PlayerHasKnife(CCSPlayerController? player)
|
||||
@@ -265,6 +284,8 @@ namespace WeaponPaints
|
||||
if (player.Team is CsTeam.None or CsTeam.Spectator)
|
||||
return;
|
||||
|
||||
var hasKnife = false;
|
||||
|
||||
Dictionary<string, List<(int, int)>> weaponsWithAmmo = [];
|
||||
|
||||
foreach (var weapon in weapons)
|
||||
@@ -272,7 +293,7 @@ namespace WeaponPaints
|
||||
if (!weapon.IsValid || weapon.Value == null ||
|
||||
!weapon.Value.IsValid || !weapon.Value.DesignerName.Contains("weapon_"))
|
||||
continue;
|
||||
|
||||
|
||||
CCSWeaponBaseGun gun = weapon.Value.As<CCSWeaponBaseGun>();
|
||||
|
||||
if (weapon.Value.Entity == null) continue;
|
||||
@@ -311,6 +332,7 @@ namespace WeaponPaints
|
||||
if (weaponData.GearSlot == gear_slot_t.GEAR_SLOT_KNIFE)
|
||||
{
|
||||
weapon.Value?.AddEntityIOEvent("Kill", weapon.Value, null, "", 0.1f);
|
||||
hasKnife = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -322,9 +344,16 @@ namespace WeaponPaints
|
||||
AddTimer(0.23f, () =>
|
||||
{
|
||||
if (!_gBCommandsAllowed) return;
|
||||
|
||||
if (!PlayerHasKnife(player))
|
||||
GiveKnifeToPlayer(player);
|
||||
|
||||
if (!PlayerHasKnife(player) && hasKnife)
|
||||
{
|
||||
var newKnife = new CBasePlayerWeapon(player.GiveNamedItem(CsItem.Knife));
|
||||
newKnife.AddEntityIOEvent("Kill", newKnife, null, "", 0.01f);
|
||||
var newWeapon = new CBasePlayerWeapon(player.GiveNamedItem(CsItem.USP));
|
||||
player.GiveNamedItem(CsItem.Knife);
|
||||
player.ExecuteClientCommand("slot3");
|
||||
newWeapon.AddEntityIOEvent("Kill", newWeapon, null, "", 0.01f);
|
||||
}
|
||||
|
||||
foreach (var entry in weaponsWithAmmo)
|
||||
{
|
||||
@@ -443,6 +472,7 @@ namespace WeaponPaints
|
||||
var viewModel = GetPlayerViewModel(player);
|
||||
if (viewModel == null || viewModel.Weapon.Value == null ||
|
||||
viewModel.Weapon.Value.Index != weapon.Index) return;
|
||||
|
||||
UpdateWeaponMeshGroupMask(viewModel, isLegacy);
|
||||
Utilities.SetStateChanged(viewModel, "CBaseEntity", "m_CBodyComponent");
|
||||
}
|
||||
@@ -506,13 +536,22 @@ namespace WeaponPaints
|
||||
|
||||
var myWeapons = pawn.WeaponServices?.MyWeapons;
|
||||
if (myWeapons == null) return;
|
||||
|
||||
foreach (var handle in myWeapons)
|
||||
{
|
||||
var weapon = handle.Value;
|
||||
if (weapon != null && weapon.DesignerName.Contains("knife"))
|
||||
|
||||
if (weapon == null || !weapon.IsValid) continue;
|
||||
if (myWeapons.Count == 1)
|
||||
{
|
||||
GivePlayerWeaponSkin(player, weapon);
|
||||
var newWeapon = new CBasePlayerWeapon(player.GiveNamedItem(CsItem.USP));
|
||||
weapon.AddEntityIOEvent("Kill", weapon, null, "", 0.01f);
|
||||
player.GiveNamedItem(CsItem.Knife);
|
||||
player.ExecuteClientCommand("slot3");
|
||||
newWeapon.AddEntityIOEvent("Kill", newWeapon, null, "", 0.01f);
|
||||
}
|
||||
|
||||
GivePlayerWeaponSkin(player, weapon);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
public int Seed { get; set; }
|
||||
public float Wear { get; set; }
|
||||
public string Nametag { get; set; } = "";
|
||||
public bool StatTrak { get; set; } = false;
|
||||
public bool StatTrak { get; set; }
|
||||
public int StatTrakCount { get; set; }
|
||||
public KeyChainInfo? KeyChain { get; set; }
|
||||
public List<StickerInfo> Stickers { get; set; } = new();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CounterStrikeSharp.API;
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Core.Attributes;
|
||||
using CounterStrikeSharp.API.Modules.Memory.DynamicFunctions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MySqlConnector;
|
||||
|
||||
@@ -16,7 +17,7 @@ public partial class WeaponPaints : BasePlugin, IPluginConfig<WeaponPaintsConfig
|
||||
public override string ModuleAuthor => "Nereziel & daffyy";
|
||||
public override string ModuleDescription => "Skin, gloves, agents and knife selector, standalone and web-based";
|
||||
public override string ModuleName => "WeaponPaints";
|
||||
public override string ModuleVersion => "2.9c";
|
||||
public override string ModuleVersion => "3.1a";
|
||||
|
||||
public override void Load(bool hotReload)
|
||||
{
|
||||
@@ -39,6 +40,7 @@ public partial class WeaponPaints : BasePlugin, IPluginConfig<WeaponPaintsConfig
|
||||
!string.IsNullOrEmpty(player.IpAddress) && player is
|
||||
{ IsBot: false, Connected: PlayerConnectedState.PlayerConnected }))
|
||||
{
|
||||
GPlayersKnivesPickup[player.Slot] = 0;
|
||||
var playerInfo = new PlayerInfo
|
||||
{
|
||||
UserId = player.UserId,
|
||||
|
||||
@@ -3,7 +3,6 @@ using MySqlConnector;
|
||||
using System.Collections.Concurrent;
|
||||
using CounterStrikeSharp.API.Modules.Utils;
|
||||
|
||||
|
||||
namespace WeaponPaints;
|
||||
|
||||
internal class WeaponSynchronization
|
||||
@@ -566,7 +565,6 @@ internal class WeaponSynchronization
|
||||
internal async Task SyncStatTrakToDatabase(PlayerInfo player)
|
||||
{
|
||||
if (WeaponPaints.WeaponSync == null || WeaponPaints.GPlayerWeaponsInfo.IsEmpty) return;
|
||||
|
||||
if (string.IsNullOrEmpty(player.SteamId))
|
||||
return;
|
||||
|
||||
@@ -578,7 +576,7 @@ internal class WeaponSynchronization
|
||||
// Check if player's slot exists in GPlayerWeaponsInfo
|
||||
if (!WeaponPaints.GPlayerWeaponsInfo.TryGetValue(player.Slot, out var teamWeaponsInfo))
|
||||
return;
|
||||
|
||||
|
||||
// Iterate through each team in the player's weapon info
|
||||
foreach (var teamInfo in teamWeaponsInfo)
|
||||
{
|
||||
@@ -587,27 +585,33 @@ internal class WeaponSynchronization
|
||||
|
||||
// Get StatTrak weapons for the current team
|
||||
var statTrakWeapons = weaponInfos
|
||||
.Where(w => w.Value is { StatTrak: true, StatTrakCount: > 0 })
|
||||
.ToDictionary(w => w.Key, w => w.Value.StatTrakCount);
|
||||
.ToDictionary(
|
||||
w => w.Key,
|
||||
w => (w.Value.StatTrak, w.Value.StatTrakCount) // Store both StatTrak and StatTrakCount in a tuple
|
||||
);
|
||||
|
||||
// Check if there are StatTrak weapons to sync
|
||||
if (statTrakWeapons.Count == 0) continue;
|
||||
|
||||
|
||||
// Get the current team ID
|
||||
int weaponTeam = (int)teamInfo.Key;
|
||||
|
||||
// Sync StatTrak values for the current team
|
||||
foreach (var (defindex, statTrakCount) in statTrakWeapons)
|
||||
foreach (var (defindex, (statTrak, statTrakCount)) in statTrakWeapons)
|
||||
{
|
||||
const string query = @"
|
||||
INSERT INTO `wp_player_skins` (`steamid`, `weapon_defindex`, `weapon_stattrak_count`, `weapon_team`)
|
||||
VALUES (@steamid, @weaponDefIndex, @StatTrakCount, @weaponTeam)
|
||||
ON DUPLICATE KEY UPDATE `weapon_stattrak_count` = @StatTrakCount";
|
||||
const string query = @"
|
||||
UPDATE `wp_player_skins`
|
||||
SET `weapon_stattrak` = @StatTrak,
|
||||
`weapon_stattrak_count` = @StatTrakCount
|
||||
WHERE `steamid` = @steamid
|
||||
AND `weapon_defindex` = @weaponDefIndex
|
||||
AND `weapon_team` = @weaponTeam";
|
||||
|
||||
var parameters = new
|
||||
{
|
||||
steamid = player.SteamId,
|
||||
weaponDefIndex = defindex,
|
||||
StatTrak = statTrak,
|
||||
StatTrakCount = statTrakCount,
|
||||
weaponTeam
|
||||
};
|
||||
|
||||
30
lang/cs.json
Normal file
30
lang/cs.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"wp_prefix": "{lightblue}[WeaponPaints] {default}",
|
||||
"wp_info_website": "Navštiv {lime}{0}{default} kde si můžeš změnit skiny",
|
||||
"wp_info_refresh": "Napiš {lime}!wp{default} pro synchronizaci vybraných skinů",
|
||||
"wp_info_knife": "Napiš {lime}!knife{default} pro otevření menu nožů",
|
||||
"wp_info_glove": "Napiš {lime}!gloves{default} pro otevření menu rukavic",
|
||||
"wp_info_agent": "Napiš {lime}!agents{default} pro otevření menu agentů",
|
||||
"wp_info_music": "Napiš {lime}!music{default} pro otevření menu MVP hudeb",
|
||||
"wp_info_pin": "Napiš {lime}!pins{default} pro otevření menu odznaků",
|
||||
"wp_command_cooldown": "{lightred}Skiny nelze nýni obnovit!",
|
||||
"wp_command_refresh_done": "{lime}Obnovuji skiny",
|
||||
"wp_knife_menu_select": "Vybral jsi si {lime}{0}{default} jako tvůj nůž",
|
||||
"wp_knife_menu_kill": "",
|
||||
"wp_knife_menu_title": "Menu nožů",
|
||||
"wp_glove_menu_select": "Vybral jsi si {lime}{0}{default} jako tvoje rukavice",
|
||||
"wp_glove_menu_title": "Menu rukavic",
|
||||
"wp_agent_menu_select": "Vybral jsi si {lime}{0}{default} jako tvůj agent",
|
||||
"wp_agent_menu_title": "Menu agentů",
|
||||
"wp_music_menu_title": "Menu MVP hudeb",
|
||||
"wp_music_menu_select": "Vybral jsi si {lime}{0}{default} jako tvojí MVP hudbu",
|
||||
"wp_pins_menu_title": "Menu odznaků",
|
||||
"wp_pins_menu_select": "Vybral jsi si {lime}{0}{default} jako tvůj odznak",
|
||||
"wp_skin_menu_weapon_title": "Menu zbraní",
|
||||
"wp_skin_menu_skin_title": "Vyběr skinů pro {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Vybral jsi si {lime}{0}{default} jako tvůj skin",
|
||||
|
||||
"wp_stattrak_action": "Úspěšně jste změnil nastavení stattraku",
|
||||
|
||||
"None": "Žádné"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "Select skin for {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "You have chosen {lime}{0}{default} as your skin",
|
||||
|
||||
"wp_stattrak_action": "You have successfully changed the stattrak setting",
|
||||
|
||||
"None": "None"
|
||||
}
|
||||
@@ -23,6 +23,8 @@
|
||||
"wp_skin_menu_weapon_title": "Ieroču Izvēlne",
|
||||
"wp_skin_menu_skin_title": "Izvēlieties ādu priekš {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Jūs esat izvēlējies {lime}{0}{default} kā savu ādu",
|
||||
|
||||
|
||||
"wp_stattrak_action": "Jūs veiksmīgi mainījāt stattrak iestatījumu",
|
||||
|
||||
"None": "Nav"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "Wybierz skórkę dla {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Wybrałeś {lime}{0}{default} jako swoją skórkę",
|
||||
|
||||
"wp_stattrak_action": "Pomyślnie zmieniłeś ustawienie stattraka",
|
||||
|
||||
"None": "Brak"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "Selecione a skin para {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Você escolheu {lime}{0}{default} como sua skin",
|
||||
|
||||
"wp_stattrak_action": "Você alterou a configuração de stattrak com sucesso",
|
||||
|
||||
"None": "Nenhum"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "Selecione a skin para {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Escolheu {lime}{0}{default} como a sua skin",
|
||||
|
||||
"wp_stattrak_action": "Alterou com sucesso a configuração do stattrak",
|
||||
|
||||
"None": "Nenhum"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "Выберите скин для {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Вы выбрали {lime}{0}{default} в качестве вашего скина",
|
||||
|
||||
"wp_stattrak_action": "Вы успешно изменили настройки статтрак",
|
||||
|
||||
"None": "Нет"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "{lime}{0}{default} için cilt seçin",
|
||||
"wp_skin_menu_select": "{lime}{0}{default} olarak cildinizi seçtiniz",
|
||||
|
||||
"wp_stattrak_action": "StatTrak ayarını başarıyla değiştirdiniz",
|
||||
|
||||
"None": "Hiçbiri"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "Виберіть шкіру для {lime}{0}{default}",
|
||||
"wp_skin_menu_select": "Ви обрали {lime}{0}{default} як свою шкіру",
|
||||
|
||||
"wp_stattrak_action": "Ви успішно змінили налаштування статтрака",
|
||||
|
||||
"None": "Немає"
|
||||
}
|
||||
@@ -24,5 +24,7 @@
|
||||
"wp_skin_menu_skin_title": "选择 {lime}{0}{default} 的皮肤",
|
||||
"wp_skin_menu_select": "您选择了 {lime}{0}{default} 作为您的皮肤",
|
||||
|
||||
"wp_stattrak_action": "您已成功更改 StatTrak 设置",
|
||||
|
||||
"None": "无"
|
||||
}
|
||||
Reference in New Issue
Block a user