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