For why my code not found?



hook.Add('PlayerSay', 'EasyMoney', function(ply, text)
   if text == '!freepy' then
      local isvisited = ply:GetPData('blogvisited', false)
      if not isvisited then
         ply:SendLua([[gui.OpenURL('https://myadexample.com')]])
         ply:PS_GivePoints(500)
         ply:SetPData('blogvisited', true)
         ply:ChatPrint('parabéns você ganhou 500 PY !')
      else
         ply:ChatPrint('algum tipo de erro aconteceu tente novamente.')
      end
      return ''
   end
end)


they code open the web page but player not get points,
and i want player can only use this command every 10 minutes
help
Thanks


chatcheck = text
chatcheck.RefTime = CurTime() + 600
pan.Think = function( self, w, h )
     if chatcheck.RefTime < CurTime() then
         return false and
          ply:ChatPrint("Please wait 10 minutes before using this command again")
     end

Do not quote me on this as I have not tested it, but this should be along the lines of what you are looking for, add it into your hook. If this is completely wrong someone please correct me as I am also learning code as well :slight_smile:

This isn’t your code and why do you keep making different threads for your issues that you could just ask for help with in your multiple other threads?

txike please not post anything in my topics

Then stop making pointless threads and actually try to learn when people help you.

ok i will try

[editline]4th February 2017[/editline]

this code (if i not maked) still not found



hook.Add('PlayerSay', 'EasyMoney', "Timer" function(ply, text, number)
   if text == '!freepy' then
         ply:SendLua([[gui.OpenURL('www.google.com')]])
         timer.Simple( 5, function() PS_GivePoints(500) end )
         ply:ChatPrint('Permaneça na página por 2 minutos')
      end
	     chatcheck = text
	     chatcheck.RefTime = CurTime() + 600
	     pan.Think = function( self, w, h )
     if  chatcheck.RefTime < CurTime() then
         return false and
		 ply:ChatPrint("Please wait 10 minutes before using this command again")
     end
      return ''
   end
end)



[editline]4th February 2017[/editline]

and you not helped me

(thanks BeZerk)