VoteMenu

Last Updated2009-05-30
Created At2007-06-05

Broadcasts a menu to a list of clients. The most selected item will be returned through MenuAction_End. On a tie, a random item will be returned from a list of the tied items. Note that MenuAction_VoteEnd and MenuAction_VoteStart are both default callbacks and do not need to be enabled.

native bool VoteMenu(Handle menu, int[] clients, int numClients, int time, int flags = 0)

Parameters

Handle menu
Menu Handle.
int[] clients
Array of clients to broadcast to.
int numClients
Number of clients in the array.
int time
Maximum time to leave menu on the screen.
int flags
Optional voting flags.

Return Value

bool True on success, false if this menu already has a vote session in progress.

Error

Invalid Handle, or a vote is already in progress.