Anti Cheat is giving R5 admin out :P
#1

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...
Reply
#2

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)