The id being within range may not be needed but it's cheap insurance to throw it in there.
PHP Code:
public Ham_Knife_Deploy_Post(iEnt)
{
static id; id = get_pdata_cbase(iEnt, m_pPlayer, 4)
if ( ( 1 <= id <= MAX_PLAYERS ) && ( !g_bBot[id] || g_iBotsWithRandomKnives ) )
{
refreshKnifeModel(id)
}
return HAM_IGNORED
}
__________________