[Include] AMX Anti Theft :by BlackAtom:
#1

AMX Anti Theft :by BlackAtom:


If someone steal your AMX (compiled pawno source code) and you discover it, you can crash the server!
Put the version of my code TESTED and WORKING in your gamemodes and filterscripts
Replace your_own_command with your own command, just for prevent more your AMX!

In the pawno script that uses ZCMD, put this:
pawn Код:
CMD:your_own_command(playerid, params[])
{
    SetTimerEx("AMXAntiTheft", 1, false, "s", "");
    return 1;
}
If you use OnPlayerCommandText callback, use this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/your_own_command", cmdtext, true, 20) == 0)
    {
        SetTimerEx("AMXAntiTheft",1,false,"s","");
        return 1;
    }
    return 0;
}
Reply
#2

Pastebin link?
Reply
#3

Pastebin? I gave the code in the first post. What I do else?
Reply
#4

This had to be posted in the usefull snippets topic. This isn't an include.
Reply
#5

Interesting concept.
Reply
#6

Timers don't send string params...
Reply
#7

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
Timers don't send string params...
Thats the concept behind this.
Reply
#8

The concept is the same used by my old include: https://sampforum.blast.hk/showthread.php?tid=342078
Furthermore, with this code you won't be able to run the command if the person who stole it ban you, and ofc it would be much more efficient if it was used in OnFilterScriptIinit or OnGameModeInit, just like my include. :P
Reply
#9

Dafuq this is stupid Dont give the script away use AntiDeAMX and finished
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)