Raised This Month: $ Target: $400
 0% 

bullet tracer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 07-24-2013 , 19:18   bullet tracer
Reply With Quote #1

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 
clipammo
        
new weaponid get_user_weapon(id,clip,ammo)

        if((
bullets[id] > clip) && (weaponid == CSW_AWP))
        {
            new 
origin1[3], origin2[3]
            
get_user_origin(idorigin11)
            
get_user_origin(idorigin24)
            
            
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.

Last edited by RuRuRu612754; 07-25-2013 at 05:19.
RuRuRu612754 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode