Castillo Posted July 26, 2013 Posted July 26, 2013 The question is... what do you need that function for? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
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 #~BlackBird~#
yoya99 Posted November 16, 2014 Posted November 16, 2014 I freakin want loading ifp files!!! And the snail starts to sing
Recommended Posts