FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add restrictions in cmd start and stop vote by Nord1cWarr1or · Pull Request #23 · Mistrick/MapManagerModular · GitHub

Add restrictions in cmd start and stop vote - #23

Open
Nord1cWarr1or wants to merge 6 commits into
Mistrick:masterfrom
Nord1cWarr1or:restrictions
Open

Add restrictions in cmd start and stop vote#23
Nord1cWarr1or wants to merge 6 commits into
Mistrick:masterfrom
Nord1cWarr1or:restrictions

Conversation

Copy link
Copy Markdown
Contributor

We need to add restrictions in cmd start and stop vote. Now they can cause bugs.
For example: the voting is starts in new round. If now make mapm_stop_vote, then mp_timelimit will stay "0"

Copy link
Copy Markdown
Contributor Author

@Mistrick how do you think, maybe add a console message for player?

}
public concmd_stopvote(id, level, cid)
{
if(is_vote_finished()) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

is_vote_finished() -> !is_vote_started()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

why

}
public concmd_startvote(id, level, cid)
{
if(is_vote_started() || is_vote_finished() || is_vote_will_in_next_round()) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Вынеси is_vote_started() в отдельное условие.
Для is_vote_finished() || is_vote_will_in_next_round() добавь квар.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Что должен делать квар?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL