Raised This Month: $7 Target: $400
 1% 

[CS GO] Change Teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jacementos
Junior Member
Join Date: Mar 2019
Old 03-26-2019 , 20:21   [CS GO] Change Teams
Reply With Quote #1

Hi im looking for the plugin which swap teams after 1 round something like on base builder.
jacementos is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 03-27-2019 , 07:28   Re: [CS GO] Change Teams
Reply With Quote #2

you can do it in other ways but i would do this so:

this will swap teams after every round end
PHP Code:
#include <sourcemod>

public void OnPluginStart()
{
    
HookEvent("round_end"round_end);
}

public 
void round_end(Event event, const char[] namebool dontBroadcast)
{
    
CreateTimer(1.0timer_swapteams);
}

public 
Action timer_swapteams(Handle hTimer)
{
    
ServerCommand("mp_swapteams");
    return 
Plugin_Continue;


Last edited by iskenderkebab33; 03-27-2019 at 07:29.
iskenderkebab33 is offline
jacementos
Junior Member
Join Date: Mar 2019
Old 03-27-2019 , 16:54   Re: [CS GO] Change Teams
Reply With Quote #3

Quote:
Originally Posted by iskenderkebab33 View Post
you can do it in other ways but i would do this so:

this will swap teams after every round end
PHP Code:
#include <sourcemod>

public void OnPluginStart()
{
    
HookEvent("round_end"round_end);
}

public 
void round_end(Event event, const char[] namebool dontBroadcast)
{
    
CreateTimer(1.0timer_swapteams);
}

public 
Action timer_swapteams(Handle hTimer)
{
    
ServerCommand("mp_swapteams");
    return 
Plugin_Continue;

Thanks it works but there is one problem, after round timelimit is restarting. Do you know hot to fix this?
jacementos 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 01:30.


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