View Single Post
KoNLiG
AlliedModders Donor
Join Date: Sep 2020
Location: Israel
Old 08-20-2021 , 11:02   Re: [CS:GO] Custom Votes [Panorama] (v1.0 | 9 August 2021)
Reply With Quote #19

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(setupVOTE_DURATION_FOREVER); 
Enjoy
__________________
For questions/plugin requests contact me:

• Discord: KoNLiG#6417
• Steam: KoNLiG

Last edited by KoNLiG; 08-20-2021 at 11:06. Reason: Implantation example
KoNLiG is offline