ACChecks()
{
new iString[160];
foreach(new i : Player)
{
if(IsPlayerConnected(i) && Player[i][Spawned] == true)
{
/*
//animation
new animlib[32];
new animname[32];
GetAnimationName(GetPlayerAnimationIndex(i),animlib,32,animname,32);
format(iString, sizeof(iString), "Animation: %s %s --- %d", animlib, animname, GetPlayerAnimationIndex(i));
SendACWarning(i, iString);
*/
//jetpack
if(Player[i][SafeJetpack] == false && GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
SendACWarning(i, "Jetpack");
}
//weaponhacks
new weaponid = GetPlayerWeapon(i);
if(Player[i][SafeGun] == false && weaponid != 0 && weaponid != DEAGLE && weaponid != SHOTGUN && weaponid != SPAS && weaponid != MP5 && weaponid != AK47 && weaponid != M4 && weaponid != RIFLE && weaponid != SNIPER && weaponid != GRENADE)
{
format(iString, sizeof(iString), "Waffen Hack: %s", WeaponNames[weaponid]);
SendACWarning(i, iString);
}
//ammohack
new Weapon[13], Ammo[13];
for(new k = 0; k < 13; k++) GetPlayerWeaponData(i, k, Weapon[k], Ammo[k]);
if(Player[i][VIP] == 1 && Player[i][SafeGun] == false)
{
if(Ammo[2] > 200 || Ammo[3] > 200 || Ammo[4] > 200 || Ammo[5] > 400 || Ammo[6] > 200 || Ammo[8] > 2)
{
SendACWarning(i, "Ammo Hack");
}
}
else if(Player[i][VIP] == 0 && Player[i][SafeGun] == false)
{
if(Ammo[2] > 100 || Ammo[3] > 100 || Ammo[4] > 100 || Ammo[5] > 200 || Ammo[6] > 100 || Ammo[8] > 1)
{
SendACWarning(i, "Munitions Hack");
}
}
//armorhack
new Float:AP;
GetPlayerArmour(i, AP);
if(AP > 25)
{
SendACWarning(i, "Rüstungs Hack");
}
//airbreak
if(GetPlayerAnimationIndex(i) == 958 || GetPlayerAnimationIndex(i) == 959 || GetPlayerAnimationIndex(i) == 961 || GetPlayerAnimationIndex(i) == 962)
{
SendACWarning(i, "Airbreak");
}
//speedhack
new Float:V[3], Float:SumV;
GetPlayerVelocity(i, V[0], V[1], V[2]);
if(V[0] > 0 && V[1] > 0) SumV = V[0] + V[1];
if(V[0] < 0 && V[1] < 0) SumV = V[0] + V[1];
if(V[0] > 0 && V[1] < 0) SumV = V[0] - V[1];
if(V[0] < 0 && V[1] > 0) SumV = V[1] - V[0];
if(SumV > 0.44 || SumV < -0.44)
{
format(iString, sizeof(iString), "Speedhack/Macros/Slidebug -- Geschwindigkeit: %.5f", SumV);
SendACWarning(i, iString);
}
}
}
}