Garry's Mod
PointShop
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  [ผู้พัฒนา] 11 มิ.ย. 2020 @ 7: 57am 
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; 11 มิ.ย. 2020 @ 7: 57am
Oh thanks, that's nice, quite simple.
< >
กำลังแสดง 1-2 จาก 2 ความเห็น
ต่อหน้า: 1530 50