Quote:
Originally Posted by DynamicBits
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(id, key) {
if (get_cvar_float("amx_vote_answers")) {
new name[32];
get_user_name(id, name, 31);
if (key == maps_to_select) {
client_print(0, print_chat, "%L", LANG_PLAYER, "DMAP_CHOSE_MAPEXTENDING", name);
} else if (key < maps_to_select) {
client_print(0, print_chat, "%L", LANG_PLAYER, "DMAP_CHOSE_MAP", name, nmaps[nnextmaps[key]]);
}
}
if (access(id,ADMIN_DMAP))
{
new voteWeight = 2;///add maybe a pcvar
nvotes[key] += voteWeight;
g_TotalVotes += voteWeight;
client_print(id, print_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(0, print_chat, "%L", LANG_PLAYER, "DMAP_RTV_STARTING", rocks);
set_hudmessage(222, 70,0, -1.0, 0.3, 1, 10.0, 10.0, 2.0, 4.0, 4);
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