SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 05/12/2009, 11:28 AM   #1
_[HuN]_Epsilon_
Huge Clucker
 
Join Date: Apr 2009
Location: Behind You!
Posts: 277
Reputation: 9
Default [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

Epsilon
_[HuN]_Epsilon_ is offline  
Old 05/12/2009, 11:33 AM   #2
pagie1111
Huge Clucker
 
Join Date: Dec 2008
Posts: 472
Reputation: 20
Default Re: [How To] Protect your source!

You didn't develop anything.. I've been using this idea for a while now lol.
__________________
Have just returned to SA:MP as of 21/07/2015
Will be reviewing one of my old scripts and releasing a new version!
+1 rep

________________________________________________
pagie1111 is offline  
Old 05/12/2009, 11:39 AM   #3
_[HuN]_Epsilon_
Huge Clucker
 
Join Date: Apr 2009
Location: Behind You!
Posts: 277
Reputation: 9
Default Re: [How To] Protect your source!

I developed Matyi's version.
_[HuN]_Epsilon_ is offline  
Old 05/12/2009, 11:41 AM   #4
Naruto4
Huge Clucker
 
Join Date: May 2009
Posts: 235
Reputation: 0
Default Re: [How To] Protect your source!

nice,didnt know this ^^ thx
Naruto4 is offline  
Old 05/12/2009, 01:01 PM   #5
_[HuN]_Epsilon_
Huge Clucker
 
Join Date: Apr 2009
Location: Behind You!
Posts: 277
Reputation: 9
Default Re: [How To] Protect your source!

NP
_[HuN]_Epsilon_ is offline  
Old 05/12/2009, 01:11 PM   #6
miokie
High-roller
 
miokie's Avatar
 
Join Date: Jan 2007
Location: Bedfordshire, England
Posts: 1,398
Reputation: 13
Default Re: [How To] Protect your source!

I kind of understand what you mean...
And I supose it could work.
__________________
miokie is offline  
Old 05/12/2009, 02:09 PM   #7
DJDhan
High-roller
 
DJDhan's Avatar
 
Join Date: Oct 2009
Location: Canada
Posts: 1,152
Reputation: 3
Default Re: [How To] Protect your source!

Useful. Thanks
__________________
DJDhan is offline  
Old 05/12/2009, 02:33 PM   #8
_[HuN]_Epsilon_
Huge Clucker
 
Join Date: Apr 2009
Location: Behind You!
Posts: 277
Reputation: 9
Default Re: [How To] Protect your source!

NP
_[HuN]_Epsilon_ is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM] Goodfellas 3.0 Full Source Violent Dave Gamemode Scripts 42 09/07/2010 01:39 PM
Another Counter Strike: Source :D rayyzze Everything and Nothing 9 04/04/2010 04:04 PM
VC:MP source. kazimieras Help Archive 6 20/02/2010 06:33 PM
VC:MP Source? Christopher. Everything and Nothing 3 02/12/2009 06:08 PM


All times are GMT. The time now is 11:20 PM.


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