Raised This Month: $ Target: $400
 0% 

1 for each team, don't going well :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-28-2009 , 18:14   1 for each team, don't going well :(
Reply With Quote #1

PHP Code:
demonid )
{
    for( new 
1<= max_clientsi++ )
    {
        if( ( 
get_user_teamid ) == ) && ( get_user_teamid ) == ) )
        {
            if( 
GotDemonicid ] >= get_pcvar_numpCvarPlayerAmount ) )
            {
                
client_printidprint_chat"Only %d players is allowed to be %s"get_pcvar_numpCvarPlayerAmount ), get_user_teamid ) )
            } 
            else 
            {
                if ( 
get_pcvar_num pCvarArmorOn ) )
                {
                    
set_user_armor idrandom_num 50255 ) )
                }    
                if ( 
get_pcvar_num pCvarHealthOn ) )
                {            
                    
set_user_health idrandom_num 50255 ) )
                }
                if ( 
get_pcvar_num pCvarSpeedOn ) )
                {
                    
set_user_maxspeed idrandom_float 230.0270.0 ) )
                }
                if ( 
get_pcvar_num pCvarGravityOn ) )
                {
                    
set_user_gravity idrandom_float 0.81.2 ) )
                }
                
set_user_rendering(idkRenderFxGlowShell2341150kRenderTransAlpha255); 
            }
        }
    }

That's the function i do in my demon plugin. I know that it don't work properly. Can anyone help me out?

Btw. It should only be this there should be looked at:
PHP Code:
demonid )
{
    for( new 
1<= max_clientsi++ )
    {
        if( ( 
get_user_teamid ) == ) && ( get_user_teamid ) == ) )
        {
            if( 
GotDemonicid ] >= get_pcvar_numpCvarPlayerAmount ) )
            {
                
client_printidprint_chat"Only %d players is allowed to be %s"get_pcvar_numpCvarPlayerAmount ), get_user_teamid ) )
            } 
And it should only be *pcvar* numbers of EACH team, there should could buy the demon
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
 



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 15:29.


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