I'm testing attach model to player.
but visible only shadow.
I need help.
[IMG]http://img838.**************/img838/5549/helplz.jpg[/IMG]
Uploaded with
**************
Code:
#define MDL_TEST "models/headcrabclassic.mdl"
new ent = CreateEntityByName("prop_dynamic");
if ( IsValidEdict( ent ) )
{
new String:tName[32];
GetEntPropString(client, Prop_Data, "m_iName", tName, sizeof( tName ) );
DispatchKeyValue(ent, "targetname", "head_ent");
DispatchKeyValue(ent, "parentname", tName);
SetEntPropEnt(ent, Prop_Send, "m_hOwnerEntity", client );
SetEntityModel( ent, MDL_TEST );
DispatchSpawn( ent );
SetVariantString( "!activator" );
AcceptEntityInput(ent, "SetParent", client, ent, 0);
SetVariantString( "head" );
AcceptEntityInput(ent, "SetParentAttachment", client, ent, 0);
}