Is there a way to Delay Poll from being accept?

Users who are viewing this thread

Arthur453

Veteran
Hi all,

In my mod we have problems with pollings. People always poll alot and it never ends. Normally it takes 1 minute for the poll to become accepted or rejected. is there a way to extend this to make it 5 minutes intead? So people can poll every 5 minutes instead of 1? this is a biggest issue so far anyone would like to help?
 
Dusk Voyager said:
You must have the source code, so you can try changing the first number in the mission template trigger named multiplayer_server_check_polls.

I do have a source code, you mean this?

Code:
multiplayer_server_check_polls = (
  1, 5, 0,

there are many trigger named server check polls, which one do i need to change?
 
hey, i change it to like this:

Code:
multiplayer_server_check_polls = (
  3, 5, 0,
  [
    (multiplayer_is_server),
    (eq, "$g_multiplayer_poll_running", 1),
    (eq, "$g_multiplayer_poll_ended", 0),
    (store_mission_timer_a, ":mission_timer"),
    (store_add, ":total_votes", "$g_multiplayer_poll_no_count", "$g_multiplayer_poll_yes_count"),
    (this_or_next|eq, ":total_votes", "$g_multiplayer_poll_num_sent"),
    (gt, ":mission_timer", "$g_multiplayer_poll_end_time"),
    (call_script, "script_cf_multiplayer_evaluate_poll"),
    ],

for some reason poll still ends with 1 minute. what have i done wrong?
 
Back
Top Bottom