22.08.2010, 07:31
i make antihack but it say that i'm hacking all time.
but i just enter vehicle and i hack.... How to fix it?
pawn Код:
public AntiHack()
{
new Float:aX,Float:aY,Float:aZ;
new Float:a2X,Float:a2Y,Float:a2Z;
for(new r=0;r<= MAX_PLAYERS;r++)
{
new PState = GetPlayerState(r);
if (PState == PLAYER_STATE_DRIVER)
{
new m = GetPlayerVehicleID(r);
GetVehiclePos(m,a2X,a2Y,a2Z);
if((floatabs(aX-a2X)>1.0)&&(floatabs(aY-a2Y)>1.0)&&(floatabs(aZ-a2Z)>1.0) && gCar[auto2][Engine] == 0)
{
SetVehiclePos(m,aX,aY,aZ);
SendClientMessage(r, COLOR_GREY, "No HACK!!!");
}
GetVehiclePos(m,aX,aY,aZ);
}
}
return 1;
}