02.07.2015, 10:40
It doesn't detect player if player is airbreaking. I just tested it now.
PHP код:
for(new i; i < MAX_PLAYERS; i++) // Start the loop
{
//if(pData[i][pAdmin] < 1)
//{
if(GetPlayerSurfingVehicleID(i) == INVALID_VEHICLE_ID && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
{
if(GetPlayerAnimationIndex(i) == 958 || GetPlayerAnimationIndex(i) == 959)
{
if(GetPlayerWeapon(i) != 46)
{
new string[126];
format(string,sizeof(string),"SERVER ANTI-CHEAT: %s (%d) CHEATING (AIRBREAK CHEATS).", pname, ID);
SendMessageToAdmins(RED,string);
return 1;
}
}
}
//}
}