Raised This Month: $ Target: $400
 0% 

TE_LINE bigger


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 12-03-2010 , 12:25   TE_LINE bigger
Reply With Quote #1

I have code
PHP Code:
new Float:end[3], Float:start[3];
    
    new 
origin[3];
    
get_user_origin(idorigin3);
    
IVecFVec(originend);
    
    
get_user_origin(idorigin);
    
IVecFVec(originstart);
    
    
xs_vec_sub(startendstart);
    new 
Float:fMulti 2.0 vector_length(start);
    
xs_vec_mul_scalar(startfMultistart);
    
    new 
Float:end2[3];
    
//start to wektor przesuniecia
    //end to pozycja domyslna
    
xs_vec_add(startendend2);
       
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
    
write_byte(TE_LINE);
    
engfunc(EngFunc_WriteCoord,end[0])
    
engfunc(EngFunc_WriteCoord,end[1])
    
engfunc(EngFunc_WriteCoord,end[2])
    
engfunc(EngFunc_WriteCoord,end2[0])
    
engfunc(EngFunc_WriteCoord,end2[1])
    
engfunc(EngFunc_WriteCoord,end2[2])
    
write_short(1);
    if(
get_user_team(id) == 1){
        
write_byte(255)
        
write_byte(0)
        
write_byte(0)
    }
    else{
        
write_byte(0)
        
write_byte(0)
        
write_byte(255)
    }
    
message_end(); 
code works but I want to do point bigger not line longer
DarkGL 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 11:23.


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