SA-MP Forums Archive
[Include] AMX Anti Theft :by BlackAtom: - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [Include] AMX Anti Theft :by BlackAtom: (/showthread.php?tid=370727)



AMX Anti Theft :by BlackAtom: - BlackAtom - 21.08.2012

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;
}



Re: AMX Anti Theft :by BlackAtom: - Arca - 21.08.2012

Pastebin link?


Re: AMX Anti Theft :by BlackAtom: - BlackAtom - 21.08.2012

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


Re: AMX Anti Theft :by BlackAtom: - MegadreamsBE - 21.08.2012

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


Re: AMX Anti Theft :by BlackAtom: - DaRealShazz - 21.08.2012

Interesting concept.


Re: AMX Anti Theft :by BlackAtom: - OKStyle - 21.08.2012

Timers don't send string params...


Re: AMX Anti Theft :by BlackAtom: - Mauzen - 21.08.2012

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


Re: AMX Anti Theft :by BlackAtom: - richardcor91 - 21.08.2012

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


AW: AMX Anti Theft :by BlackAtom: - BiosMarcel - 02.09.2012

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