TTT, donator weapon in the traitor shop.

Excuse me for any grammatical errors.

I would like to make some traitor weapons buyable only by a donator, but i dont know how to do it.

Someone can help me?

The donator’s server group is (VIP).

Thank you!


He never said he was using pointshop…

AllowedUserGroup can works for the pointshop, not for the traitor menu.

[editline]22nd April 2016[/editline]

Can I do it?

if Player:IsUserGroup( "VIP" ) then

First of all, Player isn’t define in the code, and SWEP.CanBuy is a weapon function.
You’d have to run an IsUserGroup check inside the purchase function