Raised This Month: $ Target: $400
 0% 

*SOLVED* T Win = Swap | CT Win = No Swap? *SOLVED*


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bobs
Member
Join Date: Oct 2011
Old 08-01-2013 , 19:56   *SOLVED* T Win = Swap | CT Win = No Swap? *SOLVED*
Reply With Quote #1

*SOLVED*

Im trying to make T Win = Swap | CT Win = No Swap

this is what i want to get changed, it automatic swap team if some1 wins, i only want T win swap.

PHP Code:
public logevent_round_end()
{
    if (
g_boolRoundEnded)
    {
        new 
players[32], numplayer
        get_players
(playersnum)
        for (new 
0numi++)
        {
            
player players[i]
            
            if (
g_iCurTeam[player] == g_iTeam[player] )
                
cs_set_user_team(player, (g_iTeam[player] = (g_iTeam[player] == CS_TEAM_T CS_TEAM_CT CS_TEAM_T)))
            else
                
g_iTeam[player] = g_iTeam[player] == CS_TEAM_T CS_TEAM_CT CS_TEAM_T
        
}
        
print_color(0"%s^x04 %L"MODNAMELANG_SERVER"SWAP_ANNOUNCE")
    }
    
remove_task(TASK_BUILD)    
    return 
PLUGIN_HANDLED


Last edited by Bobs; 08-01-2013 at 21:16. Reason: solved
Bobs 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 15:59.


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