26.05.2013, 16:28
(
Последний раз редактировалось ThePrograme; 26.05.2013 в 17:03.
)
Ok i m using the Balkan Security anti cheat - https://sampforum.blast.hk/showthread.php?tid=335007 and the anti air brake doesn't work.
Here is the code of the anti air brake:
This is just the anti air brake code. There are no errors or warnings!!!
Really need this fast - Thanks In Advance.
Here is the code of the anti air brake:
pawn Код:
//=====================[ANTI AIR BRAKE]=====================
if(PAB == 1)
{
if(GetPVarInt(i, "AdminProtect") == 0)
{
if(GetDistanceToPoint(i,Position[i][0],Position[i][1],Position[i][2]) > 220 && Protection[i] == 0 && GetPlayerInterior(i) == 0 && kicked[i] == 0 && GetPVarInt(i, "SafeTeleport") == 1)
{
new ankategorija[320]; new anname[320];
GetAnimationName(GetPlayerAnimationIndex(i),ankategorija,320,anname,320);
GetPlayerName(i, Plname, sizeof(Plname));
GetPlayerIp(i, ipadress, sizeof(ipadress));
if(strcmp(anname,"RUN_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false) == 0)
{
format(string, sizeof(string), "*** AntiCheat: Has Kicked %s (%d) - Reason: Air Brake!",Plname, playerid);
SendClientMessageToAll(COLOR_RED, string); kicked[i] = 1;
format(stR, sizeof(stR),"{CD0000}Kicked!\n{FFF8DC}Name:{CD0000} %s\n{FFF8DC}Reason:{CD0000} Air Brake\n{FFF8DC}IP:{CD0000} %s\n\n{CD0000}If You Think That You Are Kicked For No Reason Or The AntiCheat Has made A Mistake,\nPress F8 And Report Mistake On Forums With Proof!\nWeb Site: %s",Plname,ipadress,forum);
ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}AntiCheat",stR, "Ok", "");
getdate(yr,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d]=> AntiCheat: Has Kicked %s - Reason: Air Brake!",d,m,yr,h,mi,s,Plname);
log(string);
SetTimerEx("kick",10, false, "i", i);
}
if(strcmp(anname,"WALK_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
{
format(string, sizeof(string), "*** AntiCheat: Has Kicked %s (%d) - Reason: Air Brake!",Plname, playerid);
SendClientMessageToAll(COLOR_RED, string); kicked[i] = 1;
format(stR, sizeof(stR),"{CD0000}Kicked!\n{FFF8DC}Name:{CD0000} %s\n{FFF8DC}Reason:{CD0000} Air Brake\n{FFF8DC}IP:{CD0000} %s\n\n{CD0000}If You Think That You Are Kicked For No Reason Or The AntiCheat Has made A Mistake,\nPress F8 And Report Mistake On Forums With Proof!\nWeb Site: %s",Plname,ipadress,forum);
ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}AntiCheat",stR, "Ok", "");
getdate(yr,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d]=> AntiCheat: Has Kicked %s - Reason: Air Brake!",d,m,yr,h,mi,s,Plname);
log(string);
SetTimerEx("kick",10, false, "i", i);
}
}
}
}
Really need this fast - Thanks In Advance.