Raised This Month: $51 Target: $400
 12% 

[L4D] Multi Votes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Beatles
Senior Member
Join Date: Feb 2014
Old 10-22-2021 , 15:52   [L4D] Multi Votes
Reply With Quote #1

Is there a way to support multi votes? Either with the game's default menu, or in a custom way? I say this because I made a plugin in which votes are asked to expel a player by friendly fire, but there are times when 3 people hurt to his companions, and votes are only requested for the first, the other 2 are omitted.

I have also thought that a solution would be to save everything until after one is finished, and automatically proceed to the next one, I don't know if this is possible, can someone help me with that?
Beatles is offline
Beatles
Senior Member
Join Date: Feb 2014
Old 10-24-2021 , 12:19   Re: [L4D] Multi Votes
Reply With Quote #2

Because whenever I make a publication, nobody answers? Am I the only one who asks the most complicated questions? or is it just that my subject is not flashy?
Beatles is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-24-2021 , 15:32   Re: [L4D] Multi Votes
Reply With Quote #3

I think your solution fits what should be done.
Add the players in an arraylist and request votes from times to time them remove the player from the arraylist and submit the new vote.
__________________
Marttt is offline
Beatles
Senior Member
Join Date: Feb 2014
Old 10-24-2021 , 19:41   Re: [L4D] Multi Votes
Reply With Quote #4

Quote:
Originally Posted by Marttt View Post
I think your solution fits what should be done.
Add the players in an arraylist and request votes from times to time them remove the player from the arraylist and submit the new vote.
Hey hi bro, thanks for your support, would you kindly provide an example?
Beatles is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-24-2021 , 20:41   Re: [L4D] Multi Votes
Reply With Quote #5

I just "thought" about the logic, you can find some info searching for Sourcemod Arraylist.

Also should store userid instead of client index, since it will run later (timer) and the client (index) may be another client (or disconnect).

Not having much free time nowadays to write a sample, also you may be using the "BuiltIn" votes plugin, would worthy to mention.
__________________
Marttt is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode