16.01.2009, 01:14
I've tested this on several scripts (using DeAMX v0.3), including the GodFarther. It took me about an hour of annoying cutting, compiling and decompileing, so be happy.
No more worrying about untrusted hosts being able to steal your source codes :P.
Any script with this protection will decompile as:
Nothing else.
To install...
Paste this anywhere in your script, as long as it's not in another callback:
Now, in a default public function (Ex: OnPlayerSpawn) paste this:
That's it!
Example: http://pastebin.com/f4cdb7933
_________________________________________________
Want to make your script real safe? Read this:
The combination of the two are lethal !
Fell free to modify it in anyway you want. That was the smallest I could cut it down to. Even changing "Brass K" to "Bras K" stops it from working.
No more worrying about untrusted hosts being able to steal your source codes :P.
Any script with this protection will decompile as:
Quote:
#include <a_samp> #include <core> #include <float> |
To install...
Paste this anywhere in your script, as long as it's not in another callback:
pawn Code:
AntiDeAMX()
{
new a[][] =
{
"Unarmed (Fist)",
"Brass K"
};
#pragma unused a
}
pawn Code:
AntiDeAMX();
Example: http://pastebin.com/f4cdb7933
_________________________________________________
Want to make your script real safe? Read this:
Quote:
Originally Posted by ssǝן‾ʎ
The question is who has ownership of the script? If you write a script for a community and give them it, do you have any right to take it back? If you gave someone a Christmas present then fell out with them, would you claim the present back? The other question is who owns the server? If it's their server locking the script to an IP will do nothing as they'll still have that IP.
Anyway, I did write a thing for this a while ago by using bind in server.cfg and reading the value in the script using GetServerVarAsString: pawn Code:
|
Fell free to modify it in anyway you want. That was the smallest I could cut it down to. Even changing "Brass K" to "Bras K" stops it from working.