Here's what i have, it was from 2013 however so i dont have any screen shots.
Code:
if(IsValidEntity(playerViewModel[client])) {
new Prop = CreateEntityByName("prop_dynamic_override");
if(Prop > 0 && IsValidEntity(Prop))
{
PrecacheModel("models/weapons/w_eq_flashbang_thrown.mdl");
DispatchKeyValue(Prop, "model", "models/weapons/w_eq_flashbang_thrown.mdl");
DispatchKeyValue(Prop, "disablereceiveshadows", "1");
DispatchKeyValue(Prop, "disableshadows", "1");
DispatchKeyValue(Prop, "solid", "0");
DispatchSpawn(Prop);
SetEntPropEnt(Prop, Prop_Send, "m_hOwnerEntity", client);
SetVariantString("!activator");
AcceptEntityInput(Prop, "SetParent", playerViewModel[client], Prop, 0);
AcceptEntityInput(Prop, "DisableShadow");
TeleportEntity(Prop, Float:{50.0, 37.0, 30.0}, Float:{270.0, 100.0, 0.0}, NULL_VECTOR);
entBatt[client] = EntIndexToEntRef(Prop);
}
}
new ent = -1;
new Owner = -1;
while((ent = FindEntityByClassname(ent, "predicted_viewmodel"))!=-1) {
Owner = GetEntPropEnt(ent, Prop_Send, "m_hOwner");
if ((Owner > 0) && (Owner <= MaxClients))
{
if (GetEntProp(ent, Prop_Send, "m_nViewModelIndex") == 0)
{
playerViewModel[Owner] = EntIndexToEntRef(ent);
}
}
}