• TTT c shop help.
    7 replies, posted
I have a weapon on my server that might be a bit over powered. So what I was wondering is if there is any way to make it so a weapon cannot be purchased more than once in a round. Like only one t could buy it. Any help would be appreciated.
In the shared lua file of the SWEP, add [lua]SWEP.LimitedStock = true -- only buyable once[/lua]
[QUOTE=Aj;41753550]In the shared lua file of the SWEP, add [lua]SWEP.LimitedStock = true -- only buyable once[/lua][/QUOTE] Neh not what I mean. I want only one of them to exist in the round at once. First "t" to get it would be the only one to have it.
In the SWEP, add this near the CanBuy: [lua]SWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buy SWEP.LimitedStock = true -- only buyable once - THIS[/lua]
[QUOTE=Acecool;41753568]In the SWEP, add this near the CanBuy: [lua]SWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buy SWEP.LimitedStock = true -- only buyable once - THIS[/lua][/QUOTE] Nope.
Sounds like you are going to have to change core files.that is not a default setting in ttt.
Are you saying you want it so it can only be bought once per round by only one traitor? If so, you should probably look into nerfing the weapon itself
[QUOTE=Thetomm2010;41753617]Sounds like you are going to have to change core files.that is not a default setting in ttt.[/QUOTE] [QUOTE=rejax;41753623]Are you saying you want it so it can only be bought once per round by only one traitor? If so, you should probably look into nerfing the weapon itself[/QUOTE] Yeah, I'm not sure making it only buyable once is possible in TTT. Try nerfing it.
Sorry, you need to Log In to post a reply to this thread.