Raised This Month: $ Target: $400
 0% 

Switch Teams on T win?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ImYourBro
Senior Member
Join Date: Jun 2014
Old 06-07-2018 , 15:18   Re: Switch Teams on T win?
Reply With Quote #6

Quote:
Originally Posted by instinctpt1 View Post
PHP Code:
#include <amxmodx>
#include <cstrike>

new boolterrorWon

public plugin_init()
{
    
register_plugin("Swap on T Win""1.0""DiGiTaL")
    
register_event("SendAudio""TerrorWon""a""2=%!MRAD_terwin");
    
register_logevent"LogeventEndRound"2"1=Round_End" )
}

public 
TerrorWon() terrorWon true;

public 
LogeventEndRound()
{
    if(
terrorWon)
    {
        new 
players[32], iNum
        get_players
(playersiNum)
        for(new 
i=0iNumi++)
        {
            
players[i]
            switch(
cs_get_user_team(x))
            {
                case 
CS_TEAM_Tcs_set_user_team(xCS_TEAM_CT)
                case 
CS_TEAM_CTcs_set_user_team(xCS_TEAM_T)
            }
        }
        
terrorWon false;
    }

Doesnt seem to work correctly. Shouldn't you turn around the cs_set_user_team?
__________________
Hello!
I'm learning AMXX right now, so please No Hate if i suck

-----------------------------------------------------------------------
Check out my Furien Mod v0.3 here

ImYourBro is offline
 



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 05:17.


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