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.
< >
Se afișează 1-2 din 2 comentarii
crester  [dezvoltator] 11 iun. 2020 la 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
Editat ultima dată de crester; 11 iun. 2020 la 7:57
Oh thanks, that's nice, quite simple.
< >
Se afișează 1-2 din 2 comentarii
Per pagină: 1530 50