[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


Messages In This Thread
[Help] GetPlayerSpecialAction not working? - by Tika Spic - 08.05.2013, 17:32
AW: [Help] GetPlayerSpecialAction not working? - by HurtLocker - 08.05.2013, 17:35
Re: [Help] GetPlayerSpecialAction not working? - by Tika Spic - 08.05.2013, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)