AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stealth Chanse. (https://forums.alliedmods.net/showthread.php?t=107527)

GudiiS 10-27-2009 14:25

Stealth Chanse.
 
Hi i wonder what's wrong. I have tried ta make so u can get a chance to be invisible (stealth)

Code:
PHP Code:

num random num(1100);
if(
num <= s2_change_stealth)
{
    if(
s2_team_stealth == || Team == s2_team_stealth)
    {
    
ColorChat(playerGREEN"%s stealth with extra %d invisible (%d %s)"lucky_messages2_change_more_stealths2_change_stealthprecent_message);
    
set_user_rendering(idkRenderFxGlowShell000kRenderTransColor02552550,);
                    
    }
    else
    {
                        
    
ColorChat(playerGREEN"%s stealth and you are %d invisible (%d %s)"lucky_messages2_change_more_stealths2_change_stealthprecent_message);    
    
set_user_rendering(idkRenderFxGlowShell000kRenderTransColor2552552550,);
    }
}





public 
unstealth (id)
{
    
set_task(fTimeout"taskStealthRemove"TASK_STEALTH id""0"a"1); 

ye, wat's wrong with this peace of code?

<VeCo> 10-28-2009 09:24

Re: Stealth Chanse.
 
Try this:
PHP Code:

set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha0

the last number is for the player's visibility


All times are GMT -4. The time now is 17:39.

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