Raised This Month: $ Target: $400
 0% 

[REQ] Vote System + Other


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
owned
Member
Join Date: Jul 2007
Old 10-12-2008 , 18:11   [REQ] Vote System + Other
Reply With Quote #1

I'm going to be starting up a BHOP/KZ/DR AIO server and I need a plugin for voting.

2 minutes before the mp_timelimit is done a vote should come up.

--Vote for the Next Map--
1. Bunnyhop Map
2. Climbing Map
3. Deathrun Map

4. Extend for 10 minutes

Once that vote is over new menu.

If the result is bunnyhop, load 5 random maps from bhop_maps.txt (in configs)

--Vote for a Bunnyhop Map--
1. bkz_junglebhop
2. j2s_4floors
3. kzse_ancienthopez
4. kz_hop
5. kz_kzlv_wanderer

If the result is climbing, load 5 random maps from kz_maps.txt (in configs)

--Vote for a Climbing Map--
1. kz_5trees
2. j2s_westblock
3. kz_sandblock2
4. kz_dimblock
5. prochallenge_longjump

If the result is deathrun, load 5 random maps from dr_maps.txt (in configs)

--Vote for a Deathrun Map--
1. deathrun_bkm
2. deathrun_insane
3. deathrun_caves_beta10
4. deathrun_extreme
5. deathrun_mordownia



And the "+ Other"

If the map is a deathrun_ map, then every new round it'll choose 15% of the current players to be a terrorist to control the buttons.

Very gracious if you could do this<3 Please PM me if you plan on doing this
__________________
MARREC/OWNED = me.
owned is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 10-12-2008 , 22:53   Re: [REQ] Vote System + Other
Reply With Quote #2

This is planned for a future release of Galileo, with the exception of:

Quote:
Originally Posted by owned View Post
And the "+ Other"

If the map is a deathrun_ map, then every new round it'll choose 15% of the current players to be a terrorist to control the buttons.

Very gracious if you could do this<3 Please PM me if you plan on doing this
__________________
Brad is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-12-2008 , 23:53   Re: [REQ] Vote System + Other
Reply With Quote #3

For the +other:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

enum
{
    
FM_TEAM_UNASSIGNED,
    
FM_TEAM_T,
    
FM_TEAM_CT,
    
FM_TEAM_SPECTATOR
};

#define OFFSET_TEAM            114

public plugin_init()
{
    
register_plugin("DeathRun Players Manager""0.1""Exolent");
    
    new 
mapname[32];
    
get_mapname(mapnamesizeof(mapname) - 1);
    
    if( 
equali(mapname"deathrun_"9) )
    {
        
register_event("HLTV""EventNewRound""a""1=0""2=0");
    }
}

public 
EventNewRound()
{
    
remove_task(1234);
    
    
client_print(0print_chat"[DeathRun] Choosing terrorists...");
    
    
set_task(1.0"TaskChoosePlayers"1234);
}

public 
TaskChoosePlayers()
{
    new 
players[32], pnum;
    
get_players(playerspnum"a");
    
    if( 
pnum ) return;
    
    new 
tnum floatround(float(pnum) * 0.15floatround_ceil);
    new 
count;
    
    new 
clientj;
    
// choose a few for t
    
for( new random(pnum); pnum && count tnumrandom(pnum) )
    {
        
client players[i];
        
        
fm_set_user_team(clientFM_TEAM_T);
        
client_print(clientprint_chat"[DeathRun] You have been chosen to be a terrorist!");
        
        for( 
ipnumj++ )
        {
            if( 
== (pnum 1) )
            {
                
players[j] = 0;
            }
            else
            {
                
players[j] = players[1];
            }
        }
        
        
pnum--;
    }
    
    
// place remaining players on ct
    
for( new 0pnumi++ )
    {
        
client players[i];
        
        
fm_set_user_team(clientFM_TEAM_CT);
        
client_print(clientprint_chat"[DeathRun] Sorry, but you were not chosen to be a terrorist.");
    }
    
    
client_print(0print_chat"[DeathRun] Finished choosing terrorists.");
}

fm_set_user_team(clientteam)
{
    
set_pdata_int(clientOFFSET_TEAMteam);
    
    static const 
TeamInfo[][] =
    {
        
"UNASSIGNED",
        
"TERRORIST",
        
"CT",
        
"SPECTATOR"
    
};
    
    static 
msgid_TeamInfo;
    if( !
msgid_TeamInfo msgid_TeamInfo get_user_msgid("TeamInfo");
    
    
message_begin(MSG_ALLmsgid_TeamInfo);
    
write_byte(client);
    
write_string(TeamInfo[team]);
    
message_end();

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
owned
Member
Join Date: Jul 2007
Old 10-12-2008 , 23:44   Re: [REQ] Vote System + Other
Reply With Quote #4

Um ok. Well I'd still like this done considering Brad's plugin change log for next release doesn't include what I'm asking for.
__________________
MARREC/OWNED = me.
owned is offline
owned
Member
Join Date: Jul 2007
Old 10-13-2008 , 00:11   Re: [REQ] Vote System + Other
Reply With Quote #5

thank you for that <3

still would love to see the custom vote system
__________________
MARREC/OWNED = me.
owned is offline
Old 10-14-2008, 06:34
owned
This message has been deleted by Brad. Reason: bumpity bumps are not allowed
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 19:06.


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