• Playermodels specific to a persons steam id
    4 replies, posted
Back about 6-8 months ago when I coded for a TTT server, there was a way you could add playermodels to the pointshop for only specific players by using their steam id's. I no longer have the code in my possession as the server went down around the end of 2014 and I started coding for another server. I would like to have that line of code again so I'm wondering if someone here has heard of it. Thanks
[url]http://pointshop.burt0n.net/items/functions#can-player-buy[/url] Use this to check if a player's steamid matches one in the code, otherwise return false
So make it function ITEM:CanPlayerBuy(ply) return ply:SteamId(*steamidhere*) end or function ITEM:CanPlayerBuy(ply) return ply:SteamIdHere() end ?
[code] function ITEM:CanPlayerBuy(ply) return ply:SteamID() == "STEAM_0:0:32493517" -- Only Scratch can buy this end [/code] Didn't you say you were a programmer? :v:
It's been a while since I've used lua. There was a 4-6 month break between the TTT server and the server I'm currently at. To top that, I'm a forgetful person when it comes to coding, my bad.
Sorry, you need to Log In to post a reply to this thread.