17.09.2010, 13:19
(
Последний раз редактировалось LordShigi; 17.09.2010 в 13:43.
)
INTRODUCTION
This plugin provides a way to protect your .amx and even .pwn script with few simple lines. Basicly it works on a key-lock system. You need to set your PASSKEY and your hidden function name in the source code of the plugin and then compile it and use it. Editing of the passkey and the hidden functions name is super-easy and it dosen't require any pre-made knowleges.
HOW TO USE IT
1. Download the source code.This plugin provides a way to protect your .amx and even .pwn script with few simple lines. Basicly it works on a key-lock system. You need to set your PASSKEY and your hidden function name in the source code of the plugin and then compile it and use it. Editing of the passkey and the hidden functions name is super-easy and it dosen't require any pre-made knowleges.
HOW TO USE IT
2. Open the source code with your C++ editor (I recommend Visual Studio 2010 Express which is FREE)
3. Edit marked lines to your personal choice. Everything you need to know about edithing those is commented in the code.
4. Compile it.
5. Add USPK.dll that you compiled in the "plugins" folder in your server(if you don't have one, make it).
6. Open you'r "server.cfg" and after "plugins <your plugin names>" add "USPK". If you don't have the line than just add "plugins USPK" in a new row.
7. Open you'r script and add a native as shown under:
pawn Код:
native CheckUSPK(string[]);
8. Use it. (some examples given under)
EXAMPLE 1:
Under OnGameModeInit
pawn Код:
if(CheckUSPK("nokey") == 1)
{
print("USPK KEY CORRECT");
}
else
{
print("USPK KEY INCORRECT");
}
DOWNLOADS:
EXAMPLE PLUGIN BUILD (this is just for test, if you want a secure script you need to compile it with your data) PASSKEY: nokey HIDDEN FUNCTION NAME: CreateDinamicObject (it is only 1 letter different from a function that most streamers use)SOURCE CODE (download this and follow the inctructions if you want a secure script)
NOTES:
This is my first plugin so be direct and tell me if I have some mistakes or you have a suggestion, bug fix, an idea.[/size]