28.10.2012, 03:30
Код:
// Weapon Anticheat if(IsPlayerLoggedIn(playerid) && !GunsBeingRemoved[playerid] && FalseBan[playerid]) { if(GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][0] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][1] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][2] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][3] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][4] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][5] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][6] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][7] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][8] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][9] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][10] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][11] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][12] && GetPlayerWeapon(playerid) != EventWep[0] && GetPlayerWeapon(playerid) != EventWep[1] && GetPlayerWeapon(playerid) != EventWep[2]) { if(GetPlayerState(playerid) != PLAYER_STATE_EXIT_VEHICLE || GetPlayerState(playerid) != PLAYER_STATE_ENTER_VEHICLE_DRIVER || GetPlayerState(playerid) != PLAYER_STATE_ENTER_VEHICLE_PASSENGER) { if(GetPlayerWeapon(playerid) != 46) { new string[128]; format(string, sizeof(string), "AdmInfo: %s has been banned by GOD, reason: Weapon Hacks (%s)", RPN(playerid), RWN(GetPlayerWeapon(playerid))); SendClientMessageToAll(COLOR_DARKRED, string); Log("logs/ban.log", string); // Banreason new file[32]; format(file, sizeof(file), "users/%s.ini", RPNU(playerid)); format(string, sizeof(string), "Weapon Hacks (%s)", RWN(GetPlayerWeapon(playerid))); dini_Set(file, "BanReason", string); dini_Set(file, "BannedBy", "AutoBan"); PlayerInfo[playerid][pBanned] = 1; AddBan(playerid); Kick(playerid); } } } } if(GunsBeingRemoved[playerid]) GunsBeingRemoved[playerid] = 0; } return 1; }