22.07.2011, 06:33
(
Последний раз редактировалось Jack_Leslie; 22.07.2011 в 07:33.
)
Hi guys, I have this on OnPlayerUpdate. It's supposed to ban the person if they aren't admin and have an RPG.
EDIT:
Fixed, code above it was stopping it from working.
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;
}
Fixed, code above it was stopping it from working.