Raised This Month: $ Target: $400
 0% 

[Origin] Make it further


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 12-19-2014 , 18:19   [Origin] Make it further
Reply With Quote #1

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(idiOrigin1);

    for (new 
03i++)
    {
        for (new 
02j++)
        {
            
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.

Last edited by ~Ice*shOt; 12-19-2014 at 18:20.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
 



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 15:23.


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