i want bullet tracer
i made it by referring to the other plugin
however there is a place that does not work and a lot of trouble
sample video:
http://www.youtube.com/watch?v=JeJ0d...ature=youtu.be
tracer is also make when you draw the weapon
PHP Code:
public plugin_init()
{
~
~
~
register_event("CurWeapon","checkWeapon","be","1=1")
register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0")
}
~
~
~
public make_tracer(id)
{
if(get_pcvar_num(bullet_tracer))
{
new clip, ammo
new weaponid = get_user_weapon(id,clip,ammo)
if((bullets[id] > clip) && (weaponid == CSW_AWP))
{
new origin1[3], origin2[3]
get_user_origin(id, origin1, 1)
get_user_origin(id, origin2, 4)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (0)
write_coord(origin1[0])
write_coord(origin1[1])
write_coord(origin1[2])
write_coord(origin2[0])
write_coord(origin2[1])
write_coord(origin2[2])
write_short(m_spriteTexture)
write_byte(1)
write_byte(5)
write_byte(15)
write_byte(15)
write_byte(0)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(155)
write_byte(150)
message_end()
}
bullets[id] = clip
}
}
i should how to fix it?
thanks.