SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Help Archive (https://forum.sa-mp.com/forumdisplay.php?f=89)
-   -   [How To] Protect your source! (https://forum.sa-mp.com/showthread.php?t=111995)

_[HuN]_Epsilon_ 05/12/2009 11:28 AM

[How To] Protect your source!
 
There are many functions and tricks for source defensing on this forum, but now I want to show you one way, where you do not have to use any functions.

The theory:

The amx reverse programs do not care about the included files just the script's source.
If we make an other file and include our main script the compiler will make the amx of the file, wich only has the include line.

In practice:

1. Open our script wich we want to protect.
2. Make a new file in the same directory where your script is.
3. Open the new file.
4. Clear the new file.
5. Write this to the new file:
pawn Code:
#include "mygamemode.pwn"
6. Change "mygamemode.pwn" to your script's pwn's name
7. Everytime you edit your script, save it and compile the file we made.

Other features:

- While we compile the new file, we can edit our script as we want.
- We don't have to share our script's .amx just the file, wich has the include source.

Credits:


- Matyi100 - for the primitive edition of this idea ( AddplayerClass and AddStaticVehicle in the included files )
- Gergo1352 - for helping me translate this to english. (grammar)
- Me - for write this down and share it :D

Epsilon

pagie1111 05/12/2009 11:33 AM

Re: [How To] Protect your source!
 
You didn't develop anything.. I've been using this idea for a while now lol.

_[HuN]_Epsilon_ 05/12/2009 11:39 AM

Re: [How To] Protect your source!
 
I developed Matyi's version.

Naruto4 05/12/2009 11:41 AM

Re: [How To] Protect your source!
 
nice,didnt know this ^^ thx

_[HuN]_Epsilon_ 05/12/2009 01:01 PM

Re: [How To] Protect your source!
 
NP

miokie 05/12/2009 01:11 PM

Re: [How To] Protect your source!
 
I kind of understand what you mean...
And I supose it could work. :s

DJDhan 05/12/2009 02:09 PM

Re: [How To] Protect your source!
 
:) Useful. Thanks ;)

_[HuN]_Epsilon_ 05/12/2009 02:33 PM

Re: [How To] Protect your source!
 
NP :D


All times are GMT. The time now is 12:44 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.