I want a player model to be owner only... How would I do this?
Pretty sure you can do this:
ITEM.SuperAdminOnly = true
Add that to this part of the item.lua.
[code]
ITEM.Name = 'Text Hat'
ITEM.Price = 1000
ITEM.Model = 'models/extras/info_speech.mdl'
ITEM.NoPreview = true
ITEM.SuperAdminOnly = true --Add this.
[/code]
[QUOTE=TheEncrypted;41666825][CODE]function ITEM:CanPlayerBuy(ply)
return ply:IsUserGroup("owner")
end[/CODE][/QUOTE]
Pointshop doesn't need this as it has it's own hooks/functions such as
ITEM.AdminOnly = true
So there isn't any need for dumb old code.
#Codeistoomainstream
[QUOTE=TheEncrypted;41666825][CODE]function ITEM:CanPlayerBuy(ply)
return ply:IsUserGroup("owner")
end[/CODE][/QUOTE]
Right on
Sorry, you need to Log In to post a reply to this thread.