Quote:
Originally Posted by bmann_420
@Noi77
Not sure, but if anything it tells you way before hand when a vote is comming up, so you can extend the maptime with mp_timelimit or something of that nature.
|
I know, but i wanted a command to cancel the vote alltogether.
Some rtv are to lame to go unstopped anyway.
I suggest something like this is added:
New command:
register_concmd("dmap_cancelvote", "dmapcancelvote", ADMIN_MAP, "Cancels the rocked vote")
New function:
PHP Code:
public dmapcancelvote(id, level, cid)
{
if (!cmd_access(id, level, cid, 0))
return PLUGIN_HANDLED
if (task_exists(765100, 1))
{
new authid[32], name[32]
get_user_authid(id, authid, 31)
get_user_name(id, name, 31)
log_to_file(logfilename,"Admin: <%s> cancelled the map vote",name)
client_print(0,print_chat,"Admin: <%s> cancelled the map vote",name)
remove_task(765100, 1)
set_hudmessage(222, 70,0, -1.0, 0.3, 1, 10.0, 10.0, 2.0, 4.0, 8)
show_hudmessage(0,"Admin <%s> cancelled the map vote",name)
hasbeenrocked=0
inprogress=0
mselected=true
return PLUGIN_CONTINUE
}
else
client_print(id, print_chat,"No current map vote to cancel")
return PLUGIN_HANDLED
}
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.