Raised This Month: $ Target: $400
 0% 

Invisibility


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-29-2010 , 02:46   Re: Invisibility
Reply With Quote #3

Some things look really weird, I also have this, take a look at this :

PHP Code:
public client_PreThink(id// engine
{
        if(
buttons IN_MOVELEFT || buttons IN_MOVERIGHT || buttons IN_FORWARD || buttons IN_BACK)
        {
            if(
Invisible[id])
            {
                
RemoveInvisible(id)
            }
        }
        else
        {
            if(
Invisible[id] != && !aSetInvisible[id])
            {
                
aSetInvisible[id]++
                
set_task(2.0"SetInvisible"id)
            }
        }
}

public 
RemoveInvisible(id)
{
    
set_user_rendering(id)
    
Invisible[id]=0
}

public 
SetInvisible(id)
{
    if(
Invisible[id] < 5)
        
Invisible[id]++
    
    
aSetInvisible[id]=0
    
    
switch(Invisible[id])
    {
        case 
1:set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha200)
        case 
2:set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha150)
        case 
3:set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha100)
        case 
4:set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha50)
        case 
5:set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha10)
    }

This can probally be done way better, but it does the trick.
__________________
I am out of order!
grimvh2 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 14:42.


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