SA-MP Forums Archive
Anti Cheat is giving R5 admin out :P - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti Cheat is giving R5 admin out :P (/showthread.php?tid=269196)



Anti Cheat is giving R5 admin out :P - cloudysky - 15.07.2011

So yesterday I had a problem with the anti cheat and I now know what is causing it. When the anti cheat is on everyone gets R5 admin, including new accounts. Can anyone help me?

pawn Код:
SetTimer("AntiCheat", 1000, true);
pawn Код:
forward AntiCheat();
pawn Код:
public AntiCheat()
{
    foreach(Player, i)
    {
        if(IsPlayerConnected(i) && GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[i][Admin] < 1)
        {
            Kick(i);
        }
    }
}
EDIT: It's like it cancels out the ResetVariables I have to prevent this...


Re: Anti Cheat is giving R5 admin out :P - Famalamalam - 15.07.2011

No way on earth that that code there can give anybody any levels.... it must be something else.


Re: Anti Cheat is giving R5 admin out :P - cloudysky - 15.07.2011

Yeah I don't get what's happening. The anti cheat doesn't work either and it should.


Re: Anti Cheat is giving R5 admin out :P - Famalamalam - 15.07.2011

Hm... maybe it's something to do with foreach?