Replace the current one in FF2 code with
PHP Code:
stock FindPlayerBack(client, index)
{
new entity=MaxClients+1;
while((entity=FindEntityByClassname2(entity, "tf_wearable*"))!=-1)
{
decl String:netclass[32];
if(GetEntityNetClass(entity, netclass, sizeof(netclass)) && StrContains(netclass, "CTFWearable")!=-1 && GetEntProp(entity, Prop_Send, "m_iItemDefinitionIndex")==index && GetEntPropEnt(entity, Prop_Send, "m_hOwnerEntity")==client && !GetEntProp(entity, Prop_Send, "m_bDisguiseWearable"))
{
return entity;
}
}
return -1;
}
__________________