• website linked to a prop
    1 replies, posted
hello wonder if someone can put togheter a script so the a newspaper prop are linked to a website got answer on my other post but i don't know how to but it togheter: [url]http://facepunch.com/threads/1137705?highlight=[/url] [url]http://facepunch.com/threads/1137711?highlight=[/url] [code] activator.NextUse = activator.NextUse or 0 function ENT:Use( activator ) if activator.NextUse < CurTime() then activator.NextUse = CurTime() + 3 activator:SendLua([[gui.OpenURL("Website url")]]) end end [/code] [code] hook.Add("PlayerUse", "Motdprop", function(pl, entity) pl.NextUse = pl.NextUse or 0 if string.find(entity:GetClass(), "prop_physics") then if entity:GetModel() == "Link To Your Model" then pl.NextUse = CurTime() + 3 pl:SendLua([[gui.OpenURL("Website url")]]) end end end) [/code]
Hey n0mi it's anonymous. Put it into an autorunning script. Thats all you need to do
Sorry, you need to Log In to post a reply to this thread.