Raised This Month: $ Target: $400
 0% 

Menu options


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
erader
Senior Member
Join Date: Dec 2010
Old 04-17-2012 , 15:18   Menu options
Reply With Quote #1

Hi!
I have 2 options in a menu and doesn't work properly:

Code:
      case 6:    
        {    
            set_user_health( id, 10000 );   
            set_user_gravity( id, 0.5);    
            give_item(id, "weapon_mp5navy");     
            cs_set_user_bpammo(id, CSW_MP5NAVY, 150);    
            for ( new i = 1; i <= g_maxplayers; i++ )    
            {    
                if ( is_user_alive( id ) && cs_get_user_team( id) == CS_TEAM_CT)   
                {    
                    set_user_health( id, 50 );    
                    set_user_noclip(id, 1);   
                }    
            }    

   }  
   
 case 7:    
        {    
            set_user_health( id, 150 );    
            give_item(id, "weapon_m249");     
            cs_set_user_bpammo(id, CSW_M249, 999);    
            for ( new i = 1; i <= g_maxplayers; i++ )    
            {    
                if ( is_user_alive( id ) && cs_get_user_team( id) == CS_TEAM_CT)   
                {    
                   set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0);      
                }    
            }
In the first, CTs don't have NOCLIP if the option is choosen and in the second the CTs aren't invisible if the option is choosen.What is wrong ?
And how can I make those items (invisibility and NOCLIP) to remain at every spawn till the round ends.
erader 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 07:43.


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