Tete omar Posted July 13, 2012 Share Posted July 13, 2012 Hello everyone. there's a many of hackers of servers and thieves of scripts by the host with { Back up button } so i want the pure solution of this issue .. if someone stole my scripts and by the host , is there any code blocks what he theft ? [ fileDelete ] or something ? if i make my host un-backup .. let's suppose if something happened and all my scripts was deleted or all gone how do i back it up again ? .. no-way , back up , or let someone steal your scripts i want the necessary precautions of this issue for me and for all !! Link to comment
Anderl Posted July 13, 2012 Share Posted July 13, 2012 You could make a server name check/something that your server has that others don't have and if it's not the same/does not exist it stops the server, then add it to the main file of the resource you want to protect. Don't forget to compile the script then, otherwise there would be no need for that cuz everybody could delete that. Link to comment
Tete omar Posted July 13, 2012 Author Share Posted July 13, 2012 You could make a server name check/something that your server has that others don't have and if it's not the same/does not exist it stops the server, then add it to the main file of the resource you want to protect.Don't forget to compile the script then, otherwise there would be no need for that cuz everybody could delete that. compile script doesn't support .. if someone decompiled my script : | Link to comment
Anderl Posted July 13, 2012 Share Posted July 13, 2012 Then you can use the protected node in meta.xml for Windows or wait for MTA Developers to fix it if you use Linux.. I don't remember other way which would fully work. Link to comment
Callum Posted July 13, 2012 Share Posted July 13, 2012 If the host stole your scripts?... You could try doing this dodgy 'encryption', but it can be easily reversed (it should confuse a few people though). local code = "if getServerName() ~= \"Example Server Name\" then stopResource(resourceRoot) end" local result = "loadstring(" for i=1,#code do result = result.."..string.char("..code:sub(i,i):byte()..")" end result = result..")()" You can then paste the result somewhere in your scripts. Link to comment
Anderl Posted July 13, 2012 Share Posted July 13, 2012 If the host stole your scripts?...You could try doing this dodgy 'encryption', but it can be easily reversed (it should confuse a few people though). local code = "if getServerName() ~= \"Example Server Name\" then stopResource(resourceRoot) end" local result = "loadstring(" for i=1,#code do result = result.."..string.char("..code:sub(i,i):byte()..")" end result = result..")()" You can then paste the result somewhere in your scripts. If the host stole your scripts? This only happens if you choose a trash host. You could try doing this dodgy 'encryption', but it can be easily reversed (it should confuse a few people though). local code = "if getServerName() ~= \"Example Server Name\" then stopResource(resourceRoot) end" local result = "loadstring(" for i=1,#code do result = result.."..string.char("..code:sub(i,i):byte()..")" end result = result..")()" You can then paste the result somewhere in your scripts This won't help, everybody will can simply delete that unless they're too nabs. Also, you forgot to mention that this code need rights to stop resources. Link to comment
Tete omar Posted July 13, 2012 Author Share Posted July 13, 2012 If the host stole your scripts?...You could try doing this dodgy 'encryption', but it can be easily reversed (it should confuse a few people though). local code = "if getServerName() ~= \"Example Server Name\" then stopResource(resourceRoot) end" local result = "loadstring(" for i=1,#code do result = result.."..string.char("..code:sub(i,i):byte()..")" end result = result..")()" You can then paste the result somewhere in your scripts. If the host stole your scripts? This only happens if you choose a trash host. You could try doing this dodgy 'encryption', but it can be easily reversed (it should confuse a few people though). local code = "if getServerName() ~= \"Example Server Name\" then stopResource(resourceRoot) end" local result = "loadstring(" for i=1,#code do result = result.."..string.char("..code:sub(i,i):byte()..")" end result = result..")()" You can then paste the result somewhere in your scripts This won't help, everybody will can simply delete that unless they're too nabs. Also, you forgot to mention that this code need rights to stop resources. No Anderl it's not a dirty host, the host's member is the dirty. someone stole my script and i just saw it on another server and he accused me that me who stole his script so i wondering if is there any protection LUA codes Link to comment
Tete omar Posted July 13, 2012 Author Share Posted July 13, 2012 mm, so what the necessary precautions of this issue ? Link to comment
TAPL Posted July 13, 2012 Share Posted July 13, 2012 I discovered that, if you put this function https://wiki.multitheftauto.com/wiki/DxDrawColorText inside your script (client) will make it impossible decompiled. Link to comment
Jaysds1 Posted July 14, 2012 Share Posted July 14, 2012 I discovered that, if you put this function https://wiki.multitheftauto.com/wiki/DxDrawColorText inside your script (client) will make it impossible decompiled. i never knew that anyways, teteomar, Did you check out MTA's Config Feature? There is another way instead of keeping your resources on the same hosting, you could put all your resources on a Webhosting then direct the httpdownloadurl to the site url, or the folder with your resources in it. Link to comment
Tete omar Posted July 14, 2012 Author Share Posted July 14, 2012 you mean download websites ? like mediafire, rapidshare, hotfile, etc... ? Link to comment
Jaysds1 Posted July 14, 2012 Share Posted July 14, 2012 nah, you could put your resources on a webhosting like 000Webhosting.com or webs.com . Link to comment
Anderl Posted July 14, 2012 Share Posted July 14, 2012 That way does not work Jaysds1, the resources must be in the server too. Link to comment
Tete omar Posted July 14, 2012 Author Share Posted July 14, 2012 I discovered that, if you put this function https://wiki.multitheftauto.com/wiki/DxDrawColorText inside your script (client) will make it impossible decompiled. make it impossible decompiling ( client ) only i guess TAPL Link to comment
Jaysds1 Posted July 14, 2012 Share Posted July 14, 2012 That way does not work Jaysds1, the resources must be in the server too. oh, ya, I forgot about that Link to comment
Tete omar Posted July 14, 2012 Author Share Posted July 14, 2012 Thanks Jaysds i've created a website : ) Link to comment
Anderl Posted July 14, 2012 Share Posted July 14, 2012 Thanks Jaysds i've created a website : ) It won't prevent from anything. You will need to have the resources in the server's resources folder. Link to comment
Tete omar Posted July 14, 2012 Author Share Posted July 14, 2012 Thanks Jaysds i've created a website : ) It won't prevent from anything. You will need to have the resources in the server's resources folder. no i'm thanking him because i've created a website for free Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now