• How to restrict items based on team in pointshop?
    4 replies, posted
nvm figured it out
I think it is ply:GetMurderer() to check if the player is the murderer.
[QUOTE=Internet1001;43509637]I think it is ply:GetMurderer() to check if the player is the murderer.[/QUOTE] That was one of the first things I tried, but the item wouldn't even load then, and it threw lua errors up.
Take a look at this thread: [url]http://facepunch.com/showthread.php?t=1328539[/url] You're using the wrong function: [lua]function ITEM:CanPlayerEquip(ply) return ply:GetMurderer() end[/lua]
[QUOTE=Internet1001;43509723]Take a look at this thread: [url]http://facepunch.com/showthread.php?t=1328539[/url] You're using the wrong function: [lua]function ITEM:CanPlayerEquip(ply) return ply:GetMurderer() end[/lua][/QUOTE] Wouldn't that let the player pay for the item, but not let them use it? I'll give it a try, thanks.
Sorry, you need to Log In to post a reply to this thread.