Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket Redemption #74

Open
itsmeaddof123 opened this issue Jul 1, 2021 · 0 comments
Open

Ticket Redemption #74

itsmeaddof123 opened this issue Jul 1, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@itsmeaddof123
Copy link
Contributor

itsmeaddof123 commented Jul 1, 2021

Refer here when doing the ticket redemption menu if you want
pluto.rounds.infobyname (found in events/sh_init) contains each event, with the name as the key and a table of information as the entry.
If you iterate for name, event in pairs(pluto.rounds.infobyname) you're be able to do:

  • event.PrintName to get the name that can be used in the menu choices
  • event.Type to get the type of even to put it in the right category,
  • event.MinPlayers and event.MaxPlayers to tell the player the requirements,
  • event.NoBuy to see if the event should be kept off the menu entirely

Also, use (found in events/sv_init):

  • pluto.rounds.goodplayercount(name) to check in the transaction if there is the right amount of players
  • pluto.rounds.prepare(name) to try preparing a round immediately
  • pluto.rounds.queue(name) to try adding the round to the queue
@itsmeaddof123 itsmeaddof123 added the enhancement New feature or request label Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants