I was wondering if its possible for only certain people to buy an item with a steamid
Like is it possible to say
ITEM.Allowuser = STEAM_0:0:90854780
Thanks
In the buyitem function make a custom check to see if the player that is buying a certain item is actually allowed to buy the item.
[QUOTE=TryHardCoder;42341528]I was wondering if its possible for only certain people to buy an item with a steamid
Like is it possible to say
ITEM.Allowuser = STEAM_0:0:90854780
Thanks[/QUOTE]
I can help with this add me on steam
Steam: [url]http://steamcommunity.com/id/forsakenspade14[/url]
[CODE]function GM:PlayerSetModel(ply)
local mdl = GAMEMODE.playermodel or "models/player/phoenix.mdl";
if ply:SteamID() == "" then
mdl = "models/player/PLAYERMODEL.mdl";
end
util.PrecacheModel(mdl)
ply:SetModel(mdl)
end[/CODE]
In quotations put steamid
then under it, don't forget to make sure the directory is correct.
Hey, could anyone help me with this as well? But I would like it for a weapon.
[QUOTE=Phobianatic;43154342]Hey, could anyone help me with this as well? But I would like it for a weapon.[/QUOTE]
This is an oldish bump, but regardless post your weapon code. If it's a simple give, then just do what they do above,
[lua] if ply:SteamID() == "" then
etc etc
end[/lua]
Just do a check basically.
I had a question, is it possible to just add a skin to a player's pointshop inventory and have it NOT show up in the shop for everyone else?
We're giving out custom skins as a donator perk and I don't want the skin in the main shop, I just want to put it directly into their inventory.
Pls help! We're using this point shop [url]https://facepunch.com/showthread.php?t=1286577[/url]
Thanks!!
[QUOTE=KanJam;48881257]I had a question, is it possible to just add a skin to a player's pointshop inventory and have it NOT show up in the shop for everyone else?
We're giving out custom skins as a donator perk and I don't want the skin in the main shop, I just want to put it directly into their inventory.
Pls help! We're using this point shop [url]https://facepunch.com/showthread.php?t=1286577[/url]
Thanks!![/QUOTE]
I had a question, why bump a 2 years old thread?
[QUOTE=tzahush;48881269]I had a question, why bump a 2 years old thread?[/QUOTE]
because these people seem like they can help, I wanted to make sure they saw my post dork :p
[QUOTE=KanJam;48881657]because these people seem like they can help, I wanted to make sure they saw my post dork :p[/QUOTE]
Weird seeing an old post by me.
Regardless, it would have been better to create a new thread. To hide the item, you'd need to go into the PS Item-VGUI code and add a simple check to see if LocalPlayer is that SteamID. If so, then :Visible(true), otherwise false.
Sorry, you need to Log In to post a reply to this thread.