Raised This Month: $ Target: $400
 0% 

1v1, 1v2, 1v3 1v4 1v5 Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 07-30-2013 , 08:18   Re: 1v1, 1v2, 1v3 1v4 1v5 Players
Reply With Quote #1

PHP Code:
IsAloneid )
{
    if( !
is_user_aliveid ) )
    {
        return 
0
    
}

    new 
szTeam12 ]
    if( 
<= get_user_teamidszTeamcharsmaxszTeam ) ) <= )
    {
        new 
Players32 ], iNum
        get_players
PlayersiNum"ae"szTeam )
        
        return ( 
iNum == ) ? 0
    
}
    
    return 
0    
}

GetAliveEnemiesid )
{
    if( !
is_user_aliveid ) )
    {
        return -
1
    
}
    
    new 
szOpposingTeam12 ]
    
    switch( 
get_user_teamid ) )
    {
        case 
1// T
        
{
            
szOpposingTeam =  "CT"
        
}
        
        case 
2// CT
        
{
            
szOpposingTeam "TERRORIST"
        
}
    }
    
    new 
Players32 ], iNum
    get_players
PlayersiNum"ae"szOpposingTeam )
    
    return 
iNum

PHP Code:
    if( IsAloneid ) && GetAliveEnemiesid ) == )
    {
        
// player is alone, versus 3 enemies
    


Last edited by guipatinador; 07-30-2013 at 09:20.
guipatinador is offline
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 15:52.


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