Garry's Mod

Garry's Mod

PointShop
❃Louₛₚ 2020 年 6 月 11 日 上午 7:44
Pointshop on a specific gamemode only?
Hello, how can I make that Pointshop is only active on a given gamemodes only? I don't like that people change skin on Murder or YTIL, but for Deathrun (for example) is funny.
< >
目前顯示第 1-2 則留言,共 2
crester  [開發人員] 2020 年 6 月 11 日 上午 7:57 
pointshop/lua/autorun/pointshop.lua

put this code at the top with filling in your preferred gamemodes to the whitelist table:
local whitelist = { ["sandbox"] = true, ["darkrp"] = true } if not whitelist[engine.ActiveGamemode()] then return end
最後修改者:crester; 2020 年 6 月 11 日 上午 7:57
❃Louₛₚ 2020 年 6 月 11 日 上午 8:35 
Oh thanks, that's nice, quite simple.
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50