mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-10 08:31:42 +00:00
Update WeaponPaints.cs
This commit is contained in:
@@ -46,11 +46,11 @@ public class WeaponPaints : BasePlugin
|
|||||||
Console.WriteLine(message);
|
Console.WriteLine(message);
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
}
|
}
|
||||||
public int GetPlayersWeaponPaint(int playerSlot, int weaponDefIndex)
|
public int GetPlayersWeaponPaint(int playerIndex, int weaponDefIndex)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
CCSPlayerController player = Utilities.GetPlayerFromSlot(playerSlot);
|
CCSPlayerController player = Utilities.GetPlayerFromIndex(playerIndex);
|
||||||
if (player == null || !player.IsValid)
|
if (player == null || !player.IsValid)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@@ -69,4 +69,4 @@ public class WeaponPaints : BasePlugin
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user