View Single Post
Fearts
ferts of daeth
Join Date: Oct 2008
Old 12-24-2020 , 23:27   Re: [TF2] Wearit
Reply With Quote #4

Code:
SDKHook(hat, SDKHook_SetTransmit, HatTransmit);


public Action HatTransmit(int entity, int client)
{
    if(GetEntPropEnt(entity, Prop_Send, "m_hOwnerEntity") == client)
        return Plugin_Continue;

    return Plugin_Handled;
}
My friend sent me this code. This way if players on the server don't want to see plugin generated items they don't have to.
__________________
Fearts is offline