mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-18 02:41:54 +00:00
1.8c
- Better gloves operations - Changed gloves table
This commit is contained in:
11
Events.cs
11
Events.cs
@@ -46,6 +46,17 @@ namespace WeaponPaints
|
||||
if (player is null || !player.IsValid || !player.UserId.HasValue || player.IsBot ||
|
||||
player.IsHLTV || player.SteamID.ToString().Length != 17) return HookResult.Continue;
|
||||
|
||||
PlayerInfo playerInfo = new PlayerInfo
|
||||
{
|
||||
UserId = player.UserId,
|
||||
Index = (int)player.Index,
|
||||
SteamId = player.SteamID.ToString(),
|
||||
Name = player.PlayerName,
|
||||
IpAddress = player.IpAddress?.Split(":")[0]
|
||||
};
|
||||
|
||||
if (weaponSync != null)
|
||||
Task.Run(async () => await weaponSync.SyncWeaponPaintsToDatabase(playerInfo));
|
||||
|
||||
if (Config.Additional.SkinEnabled)
|
||||
gPlayerWeaponsInfo.TryRemove((int)player.Index, out _);
|
||||
|
||||
Reference in New Issue
Block a user