AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   *SOLVED* T Win = Swap | CT Win = No Swap? *SOLVED* (https://forums.alliedmods.net/showthread.php?t=222373)

Bobs 08-01-2013 19:56

*SOLVED* T Win = Swap | CT Win = No Swap? *SOLVED*
 
*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




All times are GMT -4. The time now is 15:59.

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