• PointShop: Possible to add role-specific weapons?
    2 replies, posted
Closest search led to this: [url]https://facepunch.com/showthread.php?t=1515639[/url] But ended with no answer. [HR][/HR] I'm wondering if there's any way to make a PointShop category with weapons only Traitors can buy (I guess Dets, too). My reasoning is that I want silenced/suppressed weapons to be Traitor-only (why would an Inno/Det need a gun that kills with no scream?). Limited Traitor credits are better spent on something with more utility, like armor, C4 or radar. Being able to let a Traitor spend PointShop points earned over time sounds like a perfect solution. Any other workaround that doesn't involve the Role shop would be nifty, too.
Oh hey that's me :P :snip: I'm dumb
If you put this in the "__category.lua" file it will make it traitor only. [CODE]function CATEGORY:CanPlayerSee(ply) return ply:IsTraitor() end[/CODE] Same thing for detective. [CODE]function CATEGORY:CanPlayerSee(ply) return ply:IsDetective() end[/CODE]
Sorry, you need to Log In to post a reply to this thread.