Raised This Month: $ Target: $400
 0% 

[HELP] Fix Bug! Please..... ZM Giant


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wilianmaique
BANNED
Join Date: Nov 2016
Old 03-05-2017 , 19:52   Re: [HELP] Fix Bug! Please..... ZM Giant
Reply With Quote #6

PHP Code:
public client_PreThink(id

    if(!
is_user_alive(id)) 
        return 
         
    
// Handle Camera 
    
if(g_MyCamera[id] && Get_BitVar(g_ViewCameraid)) 
    { 
        static 
Float:Origin[3], Float:CamOrigin[3
        
pev(idpev_originOrigin
         
        static 
Float:vAngle[3], Float:Angles[3
        
pev(idpev_anglesAngles
        
pev(idpev_v_anglevAngle
         
        static 
Float:
        
for(256.0>= 0.0-= 0.1
        { 
            
CamOrigin[0] = floatcos(vAngle], degrees) * -
            CamOrigin
[1] = floatsin(vAngle], degrees) * -
            CamOrigin
[2] = - (4
            
CamOrigin[0] += Origin[0
            
CamOrigin[1] += Origin[1
            
CamOrigin[2] += Origin[2
             
            if(
PointContents(CamOrigin) != CONTENTS_SOLID && PointContents(CamOrigin) != CONTENTS_SKY
                break; 
        } 
         
        
vAngle[0] = 20.0 
        
        
if(!pev_valid(id)) return;

        
set_pev(g_MyCamera[id], pev_originCamOrigin
        
set_pev(g_MyCamera[id], pev_anglesvAngle
        
set_pev(g_MyCamera[id], pev_v_anglevAngle
    } 

wilianmaique is offline
Send a message via Skype™ to wilianmaique
 



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 20:51.


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