At
Code:
get_user_origin(id, iOrigin);
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_BLOODSPRITE);
write_coord(iOrigin[0]);
write_coord(iOrigin[1]);
write_coord(iOrigin[2]);
write_short(blood2);
write_short(blood);
write_byte(229);
write_byte(25);
message_end();
set_pev(id, pev_punchangle, ViewAngle);
SetHamParamEntity(2, attacker);
return HAM_IGNORED;
you have set the second parameter of
Code:
SetHamParamEntity(2, attacker);
as attacker id or entity id aka a player id. It expects a float value, not id of entity.
PS:
Ignore my post... Now that I've read what I've written last night... I apologize. It has nothing to do with it. Probably Natseh is right.
__________________