When I'm driving a random car more than 100etc km/h i get kicked by the AC,Reason: AirBrake.What's wrong here,I really need this AntiHack.Rep who helps me solve this!
PHP код:
//=====================[ANTI AIRBRAKE]=====================
if(PAB == 1)
{
if(GetPVarInt(i, "Izbegavanje") == 0)
{
if(GetPVarInt(i, "SiguranTeleport") == 1)
{
Zastita[i] = 1;
SetPVarInt(i, "SiguranTeleport", 0);
}
if(GetPVarFloat(i, "ZastitaTeleporta") == 1)
{
Zastita[i] = 1;
SetPVarFloat(i,"ZastitaTeleporta",0);
}
if(GetDistanceToPoint(i,Pozicija[i][0],Pozicija[i][1],Pozicija[i][2]) > 250 && Zastita[i] == 0 && GetPlayerInterior(i) == 0 && kickan[i] == 0 && GetPVarInt(i, "SiguranTeleport") == 0 && AFK2[i] == 0)
{
new ankategorija[320]; new anime[320];
GetAnimationName(GetPlayerAnimationIndex(i),ankategorija,320,anime,320);
GetPlayerName(i, ime, sizeof(ime));
GetPlayerIp(i, ipadresa, sizeof(ipadresa));
if(strcmp(anime,"RUN_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
{
format(string, sizeof(string), "%s %s je kickan zbog Air Brake-a.",acime, ime);
SendClientMessageToAll(CRVENA, string); kickan[i] = 1;
format(string2, sizeof(string2),"{CD0000}Kickan si!\n{FFF8DC}Ime:{CD0000} %s\n{FFF8DC}Razlog:{CD0000} AirBrake\n{FFF8DC}IP:{CD0000} %s\n \n{CD0000}Ukoliko mislis da je doslo do greske,\n pritisni F8 i prijavi gresku na forum ovog servera.\n Adresa: %s",ime,ipadresa,forum);
ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}[NG-AC]",string2, "Ok", "");
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [NG-AC] je kickao %s zbog AirBrake-a",d,m,y,h,mi,s,ime);
log(string);
SetTimerEx("kick",10, false, "i", i);
}
if(strcmp(anime,"WALK_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
{
format(string, sizeof(string), "%s %s je kickan zbog Air Brake-a.",acime, ime);
SendClientMessageToAll(CRVENA, string); kickan[i] = 1;
format(string2, sizeof(string2),"{CD0000}Kickan si!\n{FFF8DC}Ime:{CD0000} %s\n{FFF8DC}Razlog:{CD0000} AirBrake\n{FFF8DC}IP:{CD0000} %s\n \n{CD0000}Ukoliko mislis da je doslo do greske,\n pritisni F8 i prijavi gresku na forum ovog servera.\n Adresa: %s",ime,ipadresa,forum);
ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}[NG-AC]",string2, "Ok", "");
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [NG-AC] je kickao %s zbog AirBrake-a",d,m,y,h,mi,s,ime);
log(string);
SetTimerEx("kick",10, false, "i", i);
}
}
}
}