OnPlayerUpdate Anti Weapon Hack (Urgent)
#1

Hi guys, I have this on OnPlayerUpdate. It's supposed to ban the person if they aren't admin and have an RPG.

pawn Код:
new weaponid = GetPlayerWeapon(playerid);
    if(PlayerInfo[playerid][pAdmin] <= 1 && weaponid == 38 || weaponid == 35 || weaponid == 36) //anti minigun and rpg
    {
    PlayerInfo[playerid][pBand] = 3;
    PlayerInfo[playerid][pPermBand] = 1;
    SendClientMessageToAll(COLOR_LIGHTRED, "{CC1100}{CC1100}AdmCmd:{FFFFFF}{FFFFFF} Another user was just banned by Leslie's Anti-Weapon hack!");
    BanEx(playerid, "Banned by Leslie, Reason: Hacked Minigun/RPG");
    }
    else {
    return 1;
    }
EDIT:

Fixed, code above it was stopping it from working.
Reply


Messages In This Thread
OnPlayerUpdate Anti Weapon Hack (Urgent) - by Jack_Leslie - 22.07.2011, 06:33
Re: OnPlayerUpdate Anti Weapon Hack (Urgent) - by Backwardsman97 - 22.07.2011, 06:48
Re: OnPlayerUpdate Anti Weapon Hack (Urgent) - by Jack_Leslie - 22.07.2011, 06:59
Re: OnPlayerUpdate Anti Weapon Hack (Urgent) - by Backwardsman97 - 22.07.2011, 07:36

Forum Jump:


Users browsing this thread: 1 Guest(s)