01.03.2016, 23:46
The only (not even complete) protection is the AntiDeAMX function (which prevents the DeAMX program to decompile your script) - search for it.
All other things (even checking the server IP) can be worked around if the person trying to run it is a bit experienced in C.
For example, if you check the servers IP with a plugin, one can write a plugin which returns the needed IP - The IP can be either brute-forced or decompiled. Even SAMP natives can theoretically be manipulated.
There is no completely safe way to achieve this, you can only prevent non-experienced programmers to break your protection.
Your best option is making sure you give it to trustworthy people.
All other things (even checking the server IP) can be worked around if the person trying to run it is a bit experienced in C.
For example, if you check the servers IP with a plugin, one can write a plugin which returns the needed IP - The IP can be either brute-forced or decompiled. Even SAMP natives can theoretically be manipulated.
There is no completely safe way to achieve this, you can only prevent non-experienced programmers to break your protection.
Your best option is making sure you give it to trustworthy people.

