Raised This Month: $ Target: $400
 0% 

Menu options


Post New Thread Reply   
 
Thread Tools Display Modes
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
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 15:24   Re: Menu options
Reply With Quote #2

Code:
            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);   
                }    
            }
Hmm....
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
erader
Senior Member
Join Date: Dec 2010
Old 04-17-2012 , 16:26   Re: Menu options
Reply With Quote #3

How should it be ?
erader is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-17-2012 , 16:33   Re: Menu options
Reply With Quote #4

he just showed you your problem ...
EpicMonkey is offline
erader
Senior Member
Join Date: Dec 2010
Old 04-17-2012 , 16:35   Re: Menu options
Reply With Quote #5

But don't understand.
erader is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 16:58   Re: Menu options
Reply With Quote #6

Then you don't even know what you are doing with your code if you don't see the problem.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 04-17-2012, 17:38
erader
This message has been deleted by erader.
erader
Senior Member
Join Date: Dec 2010
Old 04-17-2012 , 17:49   Re: Menu options
Reply With Quote #7

Now I solved, thanks.

One more question: how can I make invisibility to remain at every spawn till the round ends.
erader is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-17-2012 , 18:15   Re: Menu options
Reply With Quote #8

Invis of what? Menu or Player?
bazhenov93 is offline
erader
Senior Member
Join Date: Dec 2010
Old 04-17-2012 , 18:30   Re: Menu options
Reply With Quote #9

Quote:
Originally Posted by bazhenov93 View Post
Invis of what? Menu or Player?
Invisibility of the player.
erader is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-18-2012 , 04:08   Re: Menu options
Reply With Quote #10

Hook spawn. If they are still supposed to be invisible then make them invisible again.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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