Update WeaponPaints.cs

This commit is contained in:
Nereziel
2023-11-07 23:01:48 +01:00
committed by GitHub
parent 44d0ed5999
commit 33c0e9b220

View File

@@ -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;
}
}
}
}