KeyStateChange - Anti weapon hack help
#6

So the final solution is:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE && ForbiddenGuns(playerid) && !pInfo[playerid][pLevel] >= 0) // firs this was IsPlayerAdmin but i need it to block admins, not rcon. ever since i changed it i got errors, help me fix
    {
        new pname[MAX_PLAYER_NAME];
        new zstr[124];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(zstr, sizeof(string), "SERVER: %s has been banned! Reason: Forbidden weapon", pname);
        SendClientMessageToAll(0xFF1A00C8,zstr);
        print(zstr);
        BanEx(playerid,zstr);
    }
}
Reply


Messages In This Thread
KeyStateChange - Anti weapon hack help - by [Cali]ChrOnic_T - 24.06.2014, 22:19
Re: KeyStateChange - Anti weapon hack help - by Jacksta21 - 24.06.2014, 22:32
Re: KeyStateChange - Anti weapon hack help - by Vince - 24.06.2014, 22:36
Re: KeyStateChange - Anti weapon hack help - by Juvanii - 24.06.2014, 23:07
Re: KeyStateChange - Anti weapon hack help - by Koala818 - 24.06.2014, 23:49
Re: KeyStateChange - Anti weapon hack help - by Juvanii - 25.06.2014, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)