Raised This Month: $ Target: $400
 0% 

Additional Player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Merc3y
Member
Join Date: Dec 2009
Old 12-31-2009 , 04:55   Additional Player
Reply With Quote #1

I wanted to make 2 stalker depend on the cvar.

I try this but it doesn't work. It set all stalker instead. And how do i make all stalker to terrorist instead of 1 stalker ?

PHP Code:
public nightstalker_startid )
{
    new 
players32 ], playersT[32], numnumT
    get_players
playersnum"a" )
    
night_stalker playersrandomnum ) ]
 
    
NightStalkernight_stalker )
    
cs_set_user_teamnight_stalkerCS_TEAM_T )
 
    
get_playersplayersTnumT"e""TERRORIST" )
    for( new 
i=0;i<numT;i++ )
    
cs_set_user_teamplayersT], CS_TEAM_CT )
 
    new 
iStalkersiMaxStalkers minget_pcvar_numcvar_additionalstalkers ), fnGetAlive( )-)
 
    while ( 
iStalkers iMaxStalkers )
    {
        if ( ++
id MaxPlayers id 1
 
        
if ( !is_user_aliveid ) )
            continue;
 
        if ( 
random_num010 ) == )
        {
            
NightStalkernight_stalker )
            
iStalkers++
        }
    }
}
 
fnGetAlive( )
{
    new 
iAliveid
 
    
for ( id 1id <= MaxPlayersid++ )
    {
        if ( 
is_user_aliveid ) )
            
iAlive++
    }
 
    return 
iAlive;

__________________
How I Wish That I Can Host Without Any Problem.

Last edited by Merc3y; 12-31-2009 at 09:28.
Merc3y is offline
Old 12-31-2009, 06:35
Merc3y
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply



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 04:09.


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