Raised This Month: $ Target: $400
 0% 

Deagles' Map Management 3.23


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ScHrAnZ DiNgEnS
Senior Member
Join Date: Sep 2007
Old 02-23-2009 , 03:43   Re: Deagles' Map Management 3.23
Reply With Quote #11

Quote:
Originally Posted by DynamicBits View Post

What do you have different in your modified version? Is it something that perhaps everyone would like to see in the official version?


--
Andy
I have added a funktion from Glileo that when a admin choose a Map it counts as two votes

PHP Code:
public vote_count(idkey) {
    if (
get_cvar_float("amx_vote_answers")) {
        new 
name[32];
        
get_user_name(idname31);
        if (
key == maps_to_select) {
            
client_print(0print_chat"%L"LANG_PLAYER"DMAP_CHOSE_MAPEXTENDING"name);
        } else if (
key maps_to_select) {
            
client_print(0print_chat"%L"LANG_PLAYER"DMAP_CHOSE_MAP"namenmaps[nnextmaps[key]]);
        }
    }
    if (
access(id,ADMIN_DMAP))
    {
        new 
voteWeight 2;///add maybe a pcvar
        
nvotes[key] += voteWeight;
        
g_TotalVotes += voteWeight;
        
client_print(idprint_chat"%L"id"DMAP_VOTE_WEIGHTED"voteWeight);
    }
    else
    {
        
nvotes[key] += 1;
        
g_TotalVotes += 1;
    }
    
    
    
g_AlreadyVoted[id] = true;
    
show_vote_menu(false);

    return 
PLUGIN_HANDLED;

I alredy addet that if is only one player on the server he can rockthevote and ignore minimumwait for RTV.

I added this part to "public rock_the_vote (id)" after the check if an vote iss inprogress

PHP Code:
if(currentplayers == 1) { ///maybe add a cvar to enabled it and use "if(currentplayers == 1 && get_pcvar_num(dmap_cvarname))
        
rocked[id] = 1;
        
rocks++;
        
client_print(0print_chat"%L"LANG_PLAYER"DMAP_RTV_STARTING"rocks);
        
set_hudmessage(22270,0, -1.00.3110.010.02.04.04);
        
show_hudmessage(0"%L"LANG_PLAYER"DMAP_RTV_START"rocks);
        
hasbeenrocked 1;
        
inprogress 1;
        
mselected false;
        
set_task(15.0"rock_it_now"765100); 

Greets,
Matze
ScHrAnZ DiNgEnS is offline
Send a message via ICQ to ScHrAnZ DiNgEnS Send a message via AIM to ScHrAnZ DiNgEnS
 



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


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