This is more of a theory other than asking for help.
I noticed that this seemed to be the player's loadout, but it looked a bit constant:
Code:
for (new i = 0; i < GetEntPropArraySize(client, Prop_Send, "m_EquippedLoadoutItemDefIndices");i++)
{
PrintToConsoleEyal("%i - %i", CS_WeaponIDToItemDefIndex(CSWeapon_REVOLVER), GetEntProp(client, Prop_Send, "m_EquippedLoadoutItemDefIndices", _, i))
}
Then I noticed element 6 had either revolver or deagle. So could this be used as an indicator of whether a player equipped a revolver or a deagle?
Code:
stock bool IsRevolverLoadoutEquipped(int client)
{
return GetEntProp(client, Prop_Send, "m_EquippedLoadoutItemDefIndices", _, 6) == CS_WeaponIDToItemDefIndex(CSWeapon_REVOLVER)
}
return
I'd love some tests before asking to move this into Snippets.
I did notice one thing and I would like help in it: it updates per connect. In casual you can immediately change your loadout, but this thing still won't update.
__________________
I am available to make plugins for pay.
Discord: Eyal282#1334