• Make pointshop model single person only
    2 replies, posted
How can I make a ps playermodel only for someone with a certain STEAM_ID?
What you can do is copy how the pointshop makes items admin only. In sv_player_extension.lua, go to line 193 and put: [lua]if ITEM.SteamIDOnly and not self:SteamID() == "STEAM_0:0whatever" then self:PS_Notify('This item is for a specific person only!') return false end[/lua] In sh_pointshop.lua, go to line 88 and put: [lua]ITEM.SteamIDOnly = false[/lua] Then (this is optional) you can make any item for that Steam ID have an icon, like admin only items. In vgui/DPointShopItem.lua, go to line 159 and put: [lua]if self.Data.SteamIDOnly then surface.SetMaterial(an icon) surface.SetDrawColor(Color(255, 255, 255, 255)) surface.DrawTexturedRect(5, 5, 16, 16) end[/lua] In the actual item's file, put: [lua]ITEM.SteamIDOnly = true[/lua]
To build on what incog said: You can also make it have different ones specific to different steamid's. Just modify it to this: sv_player_extension: [code]ITEM.SteamIDOnly and ITEM.SteamID and not self:SteamID() == ITEM.SteamID[/code] in the item file: [code]ITEM.SteamIDOnly = true ITEM.SteamID = "STEAM_0:1:123456"[/code]
Sorry, you need to Log In to post a reply to this thread.