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

Disable csgo knives as a traitor weapon in TTT #1

Closed
Lance0001 opened this issue Dec 16, 2016 · 2 comments
Closed

Disable csgo knives as a traitor weapon in TTT #1

Lance0001 opened this issue Dec 16, 2016 · 2 comments

Comments

@Lance0001
Copy link

What would be the best method to disable CSGO knives as a traitor weapon in TTT?

@xDShot
Copy link
Owner

xDShot commented Dec 16, 2016

For now, in each lua file switch SWEP.CanBuy to nil:

SWEP.CanBuy = nil

This makes so the traitors won't be able to buy it from buymenu. You'd need to figure it out how to deliver them to players (ex. Pointshop) as they are usually accessable only through buymenu and not randomspawnable.

@xDShot
Copy link
Owner

xDShot commented Jan 7, 2017

Please see this:
#2

@xDShot xDShot closed this as completed Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants