Castillo Posted July 26, 2013 Posted July 26, 2013 The question is... what do you need that function for?
Quited Posted July 26, 2013 Author Posted July 26, 2013 The question is... what do you need that function for? i will put protection in my resource Using this function getServerIP (protect from resource stolen) if the server ip not my server ip if getServerIP I will use redirectPlayer redirect Players to my Servers.
ixjf Posted July 26, 2013 Posted July 26, 2013 Hardcode the IP on your script or add a configuration file.
MTA Team qaisjp Posted July 26, 2013 MTA Team Posted July 26, 2013 What you could do is create a dummy account, then use mta functions to compare the hash to what you expect it to be. But that's too complicated for you. wrappah. Regardless, its easy to bypass your idea there. I won't say how to do it though. The best way for resource protection is using MTA's encryption system. I forgot where it was stored on this server, but I'm sure ixjf can help you on that.
./BlackBird# Posted August 7, 2013 Posted August 7, 2013 getServerIp function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php",function(value) if value ~= "ERROR" then ip = value end end) return ip end
Recommended Posts