How I can do this
Sprblood a little bit further from player? I need that spr at the point where player is aiming. My code:
PHP Code:
public Sprblood(id)
{
new iOrigin[3]
get_user_origin(id, iOrigin, 1);
for (new i = 0; i < 3; i++)
{
for (new j = 0; j < 2; j++)
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(TE_BLOODSPRITE)
write_coord(iOrigin[0] + 40)
write_coord(iOrigin[1])
write_coord(iOrigin[2])
write_short(spr_blood_spray)
write_short(spr_blood_drop)
write_byte(225)
write_byte(15)
message_end()
}
}
}
Now it is further, but when I turn a little bit it's on the same place (because I'm adding only at X).
I think I need to get other origin, but I don't know which.