AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Need a plugin for Scramble Teams. (https://forums.alliedmods.net/showthread.php?t=289640)

Skyliner 10-26-2016 12:31

Need a plugin for Scramble Teams.
 
Hello again AlliedModders.
I have made a competitive war3ft server.
The 1st team who is wins 20 rounds win the map.
I need a plugin that a player can start a vote to scramble after 5 rounds and if the vote option is yes to scramble the players. If it's possbile this option to be used only 1 time per map. Thanks! :)

FR0NTLINE 10-26-2016 13:26

Re: Need a plugin for Scramble Teams.
 
when you say scramble players, you mean like put dudes on different teams? mix em up?

Skyliner 10-26-2016 13:29

Re: Need a plugin for Scramble Teams.
 
Quote:

Originally Posted by FR0NTLINE (Post 2465180)
when you say scramble players, you mean like put dudes on different teams? mix em up?

Yeap, exacly, something like CS GO scramble ...

ish12321 10-26-2016 14:26

Re: Need a plugin for Scramble Teams.
 
Quote:

Originally Posted by Skyliner (Post 2465181)
like CS GO scramble ...

I haven't played CS:GO
Please explain me how CS:GO is.... is it something specific ?

Skyliner 10-26-2016 16:04

Re: Need a plugin for Scramble Teams.
 
Quote:

Originally Posted by ish12321 (Post 2465203)
I haven't played CS:GO
Please explain me how CS:GO is.... is it something specific ?

Anyone from the server can start a vote to scramble the teams, mix all the players in both teams.
You can chose if Yes or No, if yes, the next round will mix the teams :).

ish12321 10-26-2016 16:58

Re: Need a plugin for Scramble Teams.
 
Okay!
I'll make tomo..
Too late today

BtW what war3ft you have ?
Classic 8 races or any extended version ?

Skyliner 10-26-2016 17:12

Re: Need a plugin for Scramble Teams.
 
Quote:

Originally Posted by ish12321 (Post 2465255)
Okay!
I'll make tomo..
Too late today

BtW what war3ft you have ?
Classic 8 races or any extended version ?

Custom Version :) , 22 races ..

ish12321 10-27-2016 01:36

Re: Need a plugin for Scramble Teams.
 
Quote:

Originally Posted by Skyliner (Post 2465259)
Custom Version :) , 22 races ..

Can I get it in pm :shock:

ish12321 10-27-2016 10:14

Re: Need a plugin for Scramble Teams.
 
Made in a bit hurry but you can check out ...
PHP Code:

/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
#include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

new PvOTES;
new 
NvOTES;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("/scramble""scramble");
    
// Add your code here...
}

public 
scramble()
{
    
PvOTES 0;
    
NvOTES 0;

    new 
iMenu menu_create("Scramble Teams?""iMenu_Handler");
    
menu_additem(iMenu"Yes");
    
menu_additem(iMenu"No");

    new 
players[32], numplayer;
    
get_players(playersnum);
    for(new 
inumi++)
    {
        
player players[i]
        
menu_display(playeriMenu);
    }

    
set_task(20.0"Scramble_Start");
}
public 
iMenu_Hadler(idmenuitem)
{
    switch(
item)
    {
        case 
0:
        {
            
PvOTES++
        }
        case 
1:
        {
            
NvOTES++
        }
    }
}

public 
Scramble_Start()
{
    if(!(
PvOTES NvOTES))
    {
        return;
    }

    new 
players[32], numplayer;
    
get_players(playersnum);
    for(new 
inumi++)
    {
        
player players[i]
        new 
team random_num(01);
        switch(
team)
        {
            case 
cs_set_user_team(playerCS_TEAM_CT);
            case 
cs_set_user_team(playerCS_TEAM_T);
        }
    }



ish12321 10-28-2016 07:46

Re: Need a plugin for Scramble Teams.
 
HELP NEEDED !
This sends sometimes all users to CT or T
Any way to scramble but make team equal, i.e., the team of 7x7 should remain 7x7 even after scramble
PHP Code:

public Scramble_Start()
{
    if(!(
PvOTES NvOTES))
    {
        return;
    }

    
ChatPrint(0"%L"LANG_PLAYER"SCRAMBLING"TAG,  PvOTESNvOTES);

    new 
players[32], numplayer;
    
get_players(playersnum);

    for(new 
inumi++)
    {
        
player players[i]
        new 
team random_num(01);
        switch(
team)
        {
            case 
:
            {
                
cs_set_user_team(playerCS_TEAM_CT);
            }
            case 
:
            {
                
cs_set_user_team(playerCS_TEAM_T);
            }
        }
    }




All times are GMT -4. The time now is 09:37.

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