784 |
get_user_authid(id, authid, 31) ; |
get_user_authid(id, authid, 31) ; |
785 |
get_user_name(id, name, 31); |
get_user_name(id, name, 31); |
786 |
#if defined DEDICATED_LOG_ENABLED |
#if defined DEDICATED_LOG_ENABLED |
787 |
log_to_file(logfilename, "Admin: <%s> cancelled the map vote", name); |
log_to_file(logfilename, "ADMIN <%s> cancelled the map vote.", name); |
788 |
#endif |
#endif |
789 |
client_print(0, print_chat, "Admin: <%s> cancelled the map vote", name); |
client_print(0, print_chat, "%L", LANG_PLAYER, "DMAP_ADMIN_CANCELLED", name); |
790 |
remove_task(765100, 1); |
remove_task(765100, 1); |
791 |
set_hudmessage(222, 70,0, -1.0, 0.3, 1, 10.0, 10.0, 2.0, 4.0, 8); |
set_hudmessage(222, 70,0, -1.0, 0.3, 1, 10.0, 10.0, 2.0, 4.0, 8); |
792 |
show_hudmessage(0, "Admin <%s> cancelled the map vote", name); |
show_hudmessage(0, "%L", LANG_PLAYER, "DMAP_ADMIN_CANCELLED", name); |
793 |
hasbeenrocked = 0; |
hasbeenrocked = 0; |
794 |
inprogress = 0; |
inprogress = 0; |
795 |
mselected = true; |
mselected = true; |
796 |
|
|
797 |
return PLUGIN_CONTINUE; |
return PLUGIN_CONTINUE; |
798 |
} else { |
} else { |
799 |
client_print(id, print_chat, "No current map vote to cancel"); |
client_print(id, print_chat, "%L", id, "DMAP_NO_CURRENT_VOTE"); |
800 |
} |
} |
801 |
return PLUGIN_HANDLED; |
return PLUGIN_HANDLED; |
802 |
} |
} |
1505 |
} |
} |
1506 |
if (containi(chat, "nominations") != -1) { |
if (containi(chat, "nominations") != -1) { |
1507 |
if (get_pcvar_num(nominations_allowed) == 0) { |
if (get_pcvar_num(nominations_allowed) == 0) { |
1508 |
client_print(id, print_chat, "Nominations are not currently allowed, maps will be chosen randomly"); |
client_print(id, print_chat, "%L", id, "DMAP_NOMINATIONS_DISABLED"); |
1509 |
return PLUGIN_HANDLED; |
return PLUGIN_HANDLED; |
1510 |
} |
} |
1511 |
if (mselected) { |
if (mselected) { |
1577 |
|
|
1578 |
public handle_nominate(id, map[]) { |
public handle_nominate(id, map[]) { |
1579 |
if (get_pcvar_num(nominations_allowed) == 0) { |
if (get_pcvar_num(nominations_allowed) == 0) { |
1580 |
client_print(id, print_chat, "Nominations are not currently allowed"); |
client_print(id, print_chat, "%L", id, "DMAP_NOMINATIONS_DISABLED"); |
1581 |
return PLUGIN_HANDLED; |
return PLUGIN_HANDLED; |
1582 |
} |
} |
1583 |
strtolower(map); |
strtolower(map); |