[Help] GetPlayerSpecialAction not working?
#1

OK so this is from my anticheat for JetPacks:

Код:
if (GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
       format(string, sizeof(string), "| Ban %s | Reason: JetPack", sendername);
       SendClientMessageToAll(COLOR_RED, string);
       SetPlayerSpecialAction(i, SPECIAL_ACTION_NONE);
       new banloc[64]; format(banloc,64,"bans/%s.ini",sendername);
       dini_Create(banloc);
       dini_Set(banloc, "Admin", "AntiCheat");
       dini_Set(banloc, "Reason", "Jetpack");
       Kick(i);
}
It kicks the correct player but bans a random player ... The ban file is created for that random player, so the one who used the JetPack isn't even banned.

Can anyone tell me what I'm doing wrong?
Reply
#2

Where is the code where you get the cheater's name? (sendername)
Reply
#3

Ok, how dafuq did I miss that :O.. Thanks bro thats the problem, it was right after this, for the weapon hack check :O.. I seriosly don't know how I didn't figure that out ... :O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)