hello

i need help with set up weapon glow when player drop the weapon, i try to use this
PHP Code:
public plugin_init() {
RegisterHam(Ham_Spawn, "weaponbox", "weapon_setcolor", 1)
}
public weapon_setcolor(ent)
{
if(!is_valid_ent(ent))
return
new szClass[32]
entity_get_string(ent, EV_SZ_classname, szClass, charsmax(szClass))
entity_set_int(ent, EV_INT_rendermode, kRenderTransAlpha)
entity_set_int(ent, EV_INT_renderfx, kRenderFxGlowShell)
entity_set_float(ent, EV_FL_renderamt, 255.0)
entity_set_vector(ent, EV_VEC_rendercolor, Float:{255.0, 0.0, 55.0})
}
thx