Version 2.0 - 20/8/2021
After upgrading to this new version a recompile to all the plugin modules with the new include is required, otherwise votes will not work properly!
API Expansion:
• Native added to retrieve the vote decisions of the vote in progress. (CustomVotes_GetVoteDecisions)
• Parse data through callbacks.
• Broadcast votes to custom group of clients.
Another small thing that added, 'VOTE_DURATION_FOREVER' define to display the vote as long as possible.
PHP Code:
CustomVoteSetup setup;
setup.clients[0] = client;
setup.client_count = 1;
// Not required when 'setup.clients' is specified.
// setup.team = CS_TEAM_NONE;
setup.initiator = client;
setup.issue_id = VOTE_ISSUE_UNPAUSEMATCH;
setup.dispstr = "<font color='#FF5500' class='fontSize-xxxl'>Faceit?</font><br/><img src='https://pbs.twimg.com/profile_images/1349712390628270081/KpMEtOII.png'/>";
setup.disppass = "<font color='#3df218'>Vote Passed!</font>";
CustomVotes_Execute(setup, VOTE_DURATION_FOREVER);
Enjoy
__________________