Skip to content

How to detect knife round if exists? #365

Answered by ysomad
ysomad asked this question in Q&A
Discussion options

You must be logged in to vote

Came up with this solution:

for _, p := range gs.TeamCounterTerrorists().Members() {
			weapons := p.Weapons()
			if len(weapons) == 1 && weapons[0].Type == common.EqKnife {
				return
			}
		}

I guess it's works, gonna test now, thanks!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ysomad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants