Raised This Month: $51 Target: $400
 12% 

Help: AutoTeam Swap to Choose skin Automaticly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 05-30-2017 , 14:56   Help: AutoTeam Swap to Choose skin Automaticly
Reply With Quote #1

Hey, i have a plugin that switchs/swaps teams at 15th roundend and i want it to not send twin or ctwin on the swap, (its doesnt) but at the swap the 4 player skins vgui menu shows up and you have to choose, how can i make it choose the skin automaticly?

PHP Code:
public task_match_ended()
{
    
// get players into teams..

    
static TPlayers[MAX_TEAMS][MAX_PLAYERS], ctsnumtsnumunassignedspecsnumi;
    
get_players_inteams(TPlayersctsnumtsnumspecsnumunassigned)
    static 
id;
    (!
is_user_connected(id))
    for(
0ctsnumi++)
    {
        
id TPlayers[TEAM_CT][i]
        
fm_set_user_team(idTEAM_TERRORIST)
    }

    for(
0tsnumi++)
    {
        
id TPlayers[TEAM_TERRORIST][i]
        
fm_set_user_team(idTEAM_CT)
    }
    
check_teams();
    
set_cvar_num("fmatch_ratio"5);                
    
g_rounds 0;
    
    
team_avaialble[TEAM_CT] = true;
    
team_avaialble[TEAM_TERRORIST] = true;
    
team_avaialble[TEAM_SPECTATOR] = true;

Anyhelp is greatly appriciated. Thanks
Hectik17 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-30-2017 , 17:55   Re: Help: AutoTeam Swap to Choose skin Automaticly
Reply With Quote #2

PHP Code:
engclient_cmd(id"joinclass""5" 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 05-30-2017 , 18:40   Re: Help: AutoTeam Swap to Choose skin Automaticly
Reply With Quote #3

Hmm I added it under fm_set_user_team ? And just above. The menu still showed up tho any reason this swap method would only work when a team ratio cvar is fullfiled? If team isn't matching the cvar number it won't swap. But if it is it works fine but the player model menu shows.

Last edited by Hectik17; 05-30-2017 at 20:00.
Hectik17 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 07:20.


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