Help errors
#1

I use this FS:
Код:
#define FILTERSCRIPT

#include <a_samp>
#include <float>
#include <zcmd>
#include <foreach>
#include <AC_Balkan_Security>

#define ZUTA 0xDABB3EAA
#define BELA 0xFFFFFFAA
#define CRVENA 0xFF0000FF
#define MAX_LEN 32
#define MAX_ENTRY 120
#define forum "www.lg-gaming.me.pn"//ovde upisi adresu svog foruma
#define MAXAFK 900 // promeni ako zelsi da prag za afk bude veci/nadji od 15 minuta (1 minut = 60 sekundi | 15 minuta = 900 sekundi)
//#error PROCITAJ INSTALIRANJE.TXT


static reci[MAX_ENTRY][MAX_LEN];

new ime[MAX_PLAYER_NAME]; // igracevo ime
new Zastita[MAX_PLAYERS]; // stvara zastitu igracu, kako nebi dobio kick bez razloga
new Skakuce[MAX_PLAYERS]; // koiko puta je uradio "bh"
new Pokusaji[MAX_PLAYERS];// koliko je igrac puta pokusao da upadne u rcon
new Novac1[MAX_PLAYERS]; // novac koj igrac poseduje, ako ima vise novca od onog koj je ovde zapisan, kick
new OpomenaNovca[MAX_PLAYERS]; // skupi 5 opomena, dobija kick
new FlyOpomena[MAX_PLAYERS];// stavljeno da bi skratilo skriptu kad dodje na 1, kick
new Spawnovan[MAX_PLAYERS]; // pomaze pri zastiti igraca
new Float:Pozicija[MAX_PLAYERS][3]; // pozicija na kojoj se nalazi
new Float:AutoHelti[MAX_PLAYERS]; // hp vozila
new kikovan[MAX_PLAYER_NAME]; // da li je kikovan
new MuteIgraca[MAX_PLAYER_NAME]; // da li je mutovan
new IgracSpamuje[MAX_PLAYER_NAME]; // da lispamuje
new PrvaSpamOpomena[MAX_PLAYER_NAME]; // da li vec ima opomenu za spam
new AFK[MAX_PLAYER_NAME]; // da li je afk
new AFK2[MAX_PLAYER_NAME]; // da li je afk
new VP = 1; // menja se ingame preko komande /anticheat - previsok ping
new PJP = 1; // menja se ingame preko komande /anticheat - protiv jetpack (anti jetpack)
new PB = 1; // menja se ingame preko komande /anticheat - provera brzine (anti speed hack)
new ZO = 1; // menja se ingame preko komande /anticheat - zabranjena oruzija (anti bad weapons)
new RCONZ = 1; // menja se ingame preko komande /anticheat - rcon zastita
new ZR = 1; // menja se ingame preko komande /anticheat - zabranjene reci
new DBP = 1; // menja se ingame preko komande /anticheat - DB provera (anti drive by)
new BHP = 1; // menja se ingame preko komande /anticheat - BH provera (anti bunny hop)
new MPing = 700; //maksimalan ping - promeni po potrebi
new Float:MBrzina = 235.0; //maksimalna brzina - promeni po potrebi
new PAB = 1; // menja se ingame preko komande /anticheat - protiv airbrake (anti airbrake)
new NN = 1; // menja se ingame preko komande /anticheat - nesiguran novac (anti money hack)
new NH = 1; // menja se ingame preko komande /anticheat - nesigurni helti (anti health hack)
new NA = 1; // menja se ingame preko komande /anticheat - nesigurni armor (anti armour hack)
new NT = 1; // menja se ingame preko komande /anticheat - interior hack
new FP = 1; // menja se ingame preko komande /anticheat - fly provera (anti fly hack)
new ANT = 1; // menja se ingame preko komande /anticheat - anti teleport[1]
new ANT2 = 1; // menja se ingame preko komande /anticheat - anti teleport[2]
new AVR = 1; // menja se ingame preko komande /anticheat - anti vehicle repair
new AS = 1; // menja se ingame preko komande /anticheat - anti spawm
new AAFK = 1; // menja se ingame preko komande /anticheat - anti afk
new y, m, d; new h,mi,s; new ipadresa[400]; new string2[600]; new Sekunde = 0;

forward AntiCheat();
forward ABroadCast(color,const string[]);
forward split(const strsrc[], strdest[][], delimiter);
forward kick(playerid);
forward nanula(playerid);
enum pInfo
{
    pAdmin,
    pTester
};
static
    PlayerInfo [MAX_PLAYERS][pInfo];
    
public OnFilterScriptInit()
{
	SetTimer("AntiCheat", 1000, 1); // OVO NESMETE DA POVECAVATE/SMANJUJETE, JER NECE RADITI VECI DEO AC-A(anti health, armour, money, teleport[int])
	UcitajAC();
	if(fexist("AC-BS/reci.txt"))
	{
		new File:myFile,
			line[MAX_LEN],
			index=0;

		myFile=fopen("AC-BS/reci.txt",filemode:io_read);

		while(fread(myFile,line,sizeof line) && (index != MAX_ENTRY))
		{
			if(strlen(line)>MAX_LEN) continue;
			StripNewLine(line);
			strmid(reci[index],line,0,strlen(line),sizeof line);
			index++;
		}
	}
	print("\n--------------------------------------");
	print(" AntiCheat by: Maki187 (Marko_Dimitrijevic)");
	print(" AntiCheat v0.9");
	print(" Balkan Rising - www.balkan-rising.info");
	print(" eXperience Hosting - www.experience-hosting.info");
	print("--------------------------------------\n");
	return 1;
}
public OnPlayerConnect(playerid)
{
	Zastita[playerid] = 1; kikovan[playerid] = 0; AFK[playerid] = 0; AFK2[playerid] = 0;
	AutoHelti[playerid] = 1000; OpomenaNovca[playerid] = 0;
	MuteIgraca[playerid] = 0; IgracSpamuje[playerid] = 0;
	SetPVarInt(playerid, "SiguranTeleport", 1); ACCREDITS PrvaSpamOpomena[playerid] = 0;
    return 1;
}
public split(const strsrc[], strdest[][], delimiter)
{
	new i, li;
	new aNum;
	new len;
	while(i <= strlen(strsrc)){
	    if(strsrc[i]==delimiter || i==strlen(strsrc)){
	        len = strmid(strdest[aNum], strsrc, li, i, 128);
	        strdest[aNum][len] = 0;
	        li = i+1;
	        aNum++;
		}
		i++;
	}
	return 1;
}
stock GetPlayerSpeed(playerid,bool:kmh) // by misco
{
    new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
    rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
    return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
stock GetDistanceToPoint(playerid,Float:x2,Float:y2,Float:z2)
{
	new Float:dis;
	new Float:x1,Float:y1,Float:z1;
	if (!IsPlayerConnected(playerid)) return -1;
	GetPlayerPos(playerid,x1,y1,z1);
	dis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
	return floatround(dis);
}
stock KodSprunk(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid, 4, -2420.219, 984.578, 44.297)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2420.180, 985.945, 44.297)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2225.203, -1153.422, 1025.906)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2576.703, -1284.430, 1061.094)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2155.906, 1606.773, 1000.055)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2209.906, 1607.195, 1000.055)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2222.203, 1606.773, 1000.055)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 495.969, -24.320, 1000.734)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 501.828, -1.430, 1000.734)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 373.828, -178.141, 1000.734)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 330.680, 178.500, 1020.070)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 331.922, 178.500, 1020.070)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 350.906, 206.086, 1008.477)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 361.563, 158.617, 1008.477)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 371.594, 178.453, 1020.070)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 374.891, 188.977, 1008.477)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2155.844, 1607.875, 1000.063)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2202.453, 1617.008, 1000.063)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2209.242, 1621.211, 1000.063)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2222.367, 1602.641, 1000.063)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 500.563, -1.367, 1000.734)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 379.039, -178.883, 1000.734)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2480.86,-1959.27,12.9609)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1634.11,-2237.53,12.8906)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2139.52,-1161.48,23.3594)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2153.23,-1016.15,62.2344)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -1350.12,493.859,10.5859)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2229.19,286.414,34.7031)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1659.46,1722.86,10.2188)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2647.7,1129.66,10.2188)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2845.73,1295.05,10.7891)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1398.84,2222.61,10.4219)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -1455.12,2591.66,55.2344)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -76.0312,1227.99,19.125)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 662.43,-552.164,15.7109)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -253.742,2599.76,62.2422)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2271.73,-76.4609,25.9609)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1789.21,-1369.27,15.1641)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1729.79,-1943.05,12.9453)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2060.12,-1897.64,12.9297)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1928.73,-1772.45,12.9453)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2325.98,-1645.13,14.2109)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2352.18,-1357.16,23.7734)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1154.73,-1460.89,15.1562)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -1350.12,492.289,10.5859)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2118.97,-423.648,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2118.62,-422.414,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2097.27,-398.336,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2092.09,-490.055,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2063.27,-490.055,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2005.65,-490.055,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2034.46,-490.055,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2068.56,-398.336,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2039.85,-398.336,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -2011.14,-398.336,34.7266)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -1980.79,142.664,27.0703)) return 1;
 	else if(IsPlayerInRangeOfPoint(playerid, 4, 2319.99,2532.85,10.2188)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1520.15,1055.27,10.00)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2503.14,1243.7,10.2188)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 2085.77,2071.36,10.4531)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -862.828,1536.61,21.9844)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -14.7031,1175.36,18.9531)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, -253.742,2597.95,62.2422)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 201.016,-107.617,0.898438)) return 1;
	else if(IsPlayerInRangeOfPoint(playerid, 4, 1277.84,372.516,18.9531)) return 1;
	else return 0;
}
//-------------------[DRIVE BY PROVERA]------------------
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new string[128];
GetPlayerIp(playerid, ipadresa, sizeof(ipadresa));
if(BHP == 1)
{
if(GetPVarInt(playerid, "Izbegavanje") == 0)
{
if((newkeys & KEY_SPRINT && newkeys & KEY_JUMP))
	{
			if(!IsPlayerInAnyVehicle(playerid))
			{
                    Skakuce[playerid] ++;
				    if(Skakuce[playerid] == 30)
					{
					    SendClientMessage(playerid,ZUTA, "[LG]: Ne koristete Bunny Hop!");
					}
					else if(Skakuce[playerid] == 45)
					{
						SendClientMessage(playerid,ZUTA, "[LG]: Ne koristete Bunny Hop!");
					}
					else if(Skakuce[playerid] == 65)
					{
						SendClientMessage(playerid,ZUTA, "[LG]: Ne koristete Bunny Hop!");
						SetTimerEx("nanula",15000, false, "i", playerid);
					}
					else if(Skakuce[playerid] == 80)
					{
						SendClientMessage(playerid,ZUTA, "[LG]: Poradi koristenje na Buuny Hop prijaveni ste na administacijata!");
						SetTimerEx("nanula",15000, false, "i", playerid);
					}
					else if(Skakuce[playerid] == 100)
					{
					if(kikovan[playerid] == 0)
    				{
    			    	kikovan[playerid] = 1;
						GetPlayerName(playerid, ime, sizeof(ime));
						GetPlayerIp(playerid, ipadresa, sizeof(ipadresa));
						format(string, sizeof(string), "[LG] %s mozebi koristi Bunny Hop proverete go!",ime);
						ABroadCast(COLOR_CRVENA,string);
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] igracot %s koristi Bunny Hop",d,m,y,h,mi,s,ime);
						log(string);
					}
			}
	}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
	new string[128];
	if(DBP == 1)
	{
		if(GetPVarInt(playerid, "Izbegavanje") == 0)
		{
			if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
    		{
    			if(GetVehicleModel(GetPlayerVehicleID(killerid)) != 425 || GetVehicleModel(GetPlayerVehicleID(killerid)) != 520 || GetVehicleModel(GetPlayerVehicleID(killerid)) != 432)
    			{
    				if(kikovan[killerid] == 0)
    				{
    			   		kikovan[killerid] = 1;
    					GetPlayerName(killerid, ime, sizeof(ime));
    					GetPlayerIp(killerid, ipadresa, sizeof(ipadresa));
						format(string, sizeof(string), "[LG] %s mozebi napravi Drive By proverete go!",ime);
                        ABroadCast(COLOR_CRVENA,string);
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] igracot %s napravi DriveBy",d,m,y,h,mi,s,ime);
						log(string);
					}
				}
			}
		}
	}
	return 1;
}
//------------------------------[RCON ZASTITA]-------------------
public OnRconLoginAttempt(ip[], password[], success)
{
	if(RCONZ == 1)
	{
    	if(!success)
    	{
 			new p2[16]; new string[176];
    		foreach(Player, i)
			{
        		if(GetPVarInt(i, "Izbegavanje") == 0)
				{
	    			GetPlayerIp(i, p2, sizeof(p2));
     				if(!strcmp(ip, p2, true))
	    			{
						GetPlayerName(i, ime, sizeof(ime));
	        			if(Pokusaji[i] != 3)
	        			{
							Pokusaji[i] ++;
							SendClientMessage(i,CRVENA, "[LG]: Ja pogresivte Rcon Lozinkata dokolku ja pogresite 3 pati ke bide prijaven na Administracijata!");
						}
						else
						{
							if(kikovan[i] == 0)
    						{
    			    			kikovan[i] = 1;
								GetPlayerName(i, ime, sizeof(ime));
								GetPlayerIp(i, ipadresa, sizeof(ipadresa));
								format(string, sizeof(string), "[LG] %s probuva za vleze vo Rcon Panelot proverete go!",ime);
                                ABroadCast(COLOR_CRVENA,string);
								getdate(y,m,d);
								gettime(h,mi,s);
								format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s proba da vleze vo Rcon Panelot",d,m,y,h,mi,s,ime);
								log(string);
							}
						}
	            	}
				}
        	}
        }
	}
    return 1;
}
public OnPlayerSpawn(playerid)
{
	Spawnovan[playerid] = 1;
	Skakuce[playerid] = 0;
	Novac1[playerid] = GetPlayerMoney(playerid);
	OpomenaNovca[playerid] = 0;
	SetPVarInt(playerid, "SiguranTeleport", 1);
	SetPVarInt(playerid, "SiguranInt", GetPlayerInterior(playerid));
	SetPVarInt(playerid, "SiguranVW", GetPlayerVirtualWorld(playerid));
	return 1;
}

stock SetPlayerSpawn(playerid)
{
	Skakuce[playerid] = 0;
	OpomenaNovca[playerid] = 0;
	Novac1[playerid] = GetPlayerMoney(playerid);
	SetPVarInt(playerid, "SiguranTeleport", 1);
	SetPVarInt(playerid, "SiguranInt", GetPlayerInterior(playerid));
	SetPVarInt(playerid, "SiguranVW", GetPlayerVirtualWorld(playerid));
	return 1;
}
public OnPlayerText(playerid,text[])
{
    new string[128];
	if(ZR == 1)
	{
		if(GetPVarInt(playerid, "Izbegavanje") == 0)
		{
 			for(new i=0; i<MAX_ENTRY; i++)
 			{
 	    		if(!reci[i][0]) continue;
				Cenzura(text,reci[i]);
			}
		}
	}
	if(AS == 1)
	{
	    if(MuteIgraca[playerid] != 0)
	    {
	    	format(string, sizeof(string), "[LG]GRESKA!! mutiran ste uste %d sekundi.",MuteIgraca[playerid]);
			SendClientMessage(playerid, CRVENA, string);
			return 0;
		}
	    IgracSpamuje[playerid]++;
		if(IgracSpamuje[playerid] >= 10)
		{
		    if(PrvaSpamOpomena[playerid] == 0)
		    {
		        PrvaSpamOpomena[playerid] = 1; IgracSpamuje[playerid] = 0;
		        format(string, sizeof(string), "[LG]Prestanete so spam ili ke dobiete kazna!!",MuteIgraca[playerid]);
				SendClientMessage(playerid, CRVENA, string);
				return 1;
			}
		    MuteIgraca[playerid] = 120; IgracSpamuje[playerid] = 0; PrvaSpamOpomena[playerid] = 0;
		    format(string, sizeof(string), "[LG]Mutiran ste na 120 sekundi poradi spam.");
			SendClientMessage(playerid, CRVENA, string);
			return 0;
		}
	}
	return 1;
}

stock Letelica(carid)// ovde se nalaze sve letelice(vozila) koja ce se ignorisati prilikom ocitavanja speed hack-a
{
    new v = GetVehicleModel(carid);
    if(v == 593 || v == 592 || v == 577 || v == 553 || v == 520 || v == 519 || v == 511|| v == 460 || v == 563 || v == 548 || v == 497 || v == 488 || v == 487 || v == 469 || v == 447 || v == 417)
	{
		return 1;
	}
	return 0;
}
stock StripNewLine(str[])
{
	new l = strlen(str);
	while (l-- && str[l] <= ' ') str[l] = '\0';
}

stock Cenzura(string[],word[],destch='*')
{
	new start_index=(-1),
	    end_index=(-1);

	start_index=strfind(string,word,true);
	if(start_index==(-1)) return false;
	end_index=(start_index+strlen(word));

	for( ; start_index<end_index; start_index++)
		string[start_index]=destch;

	return true;
}
public kick(playerid)
{
	ResetPlayerWeapons(playerid);
	Kick(playerid);
	return 1;
}

public nanula(playerid)
{
	if(Skakuce[playerid] >= 65 && Skakuce[playerid] < 76)
	{
		Skakuce[playerid] = 0;
	}
	return 1;
}
stock log(string[])
{
	new entry[200];
	format(entry, sizeof(entry), "%s\r\n",string);
	new File:hFile;
	hFile = fopen("AC-BS/log.log", io_append);
	fwrite(hFile, entry);
	fclose(hFile);
}
stock SnimiAC()
{
	new string[228];
	format(string, sizeof(string), "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",VP,PJP,PB,ZO,RCONZ,ZR,DBP,BHP,PAB,NN,NH,NA,NT,FP,ANT,ANT2,AVR,AS,AAFK);
	new File: file2 = fopen("AC-BS/anticheat.ini", io_write);
	fwrite(file2, string);
	fclose(file2);
	return 1;
}
stock UcitajAC()
{
	new arrCoords[19][64];
	new strFromFile2[128];
	new File: file = fopen("AC-BS/anticheat.ini", io_read);
	if (file)
	{
		fread(file, strFromFile2);
		split(strFromFile2, arrCoords, ',');
		VP = strval(arrCoords[0]);
		PJP = strval(arrCoords[1]);
		PB = strval(arrCoords[2]);
		ZO = strval(arrCoords[3]);
		RCONZ = strval(arrCoords[4]);
		ZR = strval(arrCoords[5]);
		DBP = strval(arrCoords[6]);
		BHP = strval(arrCoords[7]);
		PAB = strval(arrCoords[8]);
		NN = strval(arrCoords[9]);
		NH = strval(arrCoords[10]);
		NA = strval(arrCoords[11]);
		NT = strval(arrCoords[12]);
		FP = strval(arrCoords[13]);
		ANT = strval(arrCoords[14]);
		ANT2 = strval(arrCoords[15]);
		AVR  = strval(arrCoords[16]);
		AS = strval(arrCoords[17]);
		AAFK  = strval(arrCoords[18]);
		fclose(file);
	}
	else
	{
		fopen("AC/anticheat.ini", io_write);
		print("Doslo je do greske!");
		SnimiAC();
		fclose(file);
	}
	return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		new Float:vhelti; Zastita[playerid] = 1;
	 	GetVehicleHealth(GetPlayerVehicleID(playerid), vhelti);
     	AutoHelti[playerid] = vhelti;
	}
	return 1;
}
public OnPlayerUpdate(playerid)
{
	if(AFK[playerid] > 2)
	{
    	AFK[playerid] = 0;
    	AFK2[playerid] = 0;
    	return 1;
	}
	return 1;
}
//=====================[PROVERA BRZINE]=====================
public AntiCheat()
{
new string[528];
Sekunde++;
foreach(Player, i)
{
	AFK[i]++;
	if(Spawnovan[i] == 1)
	{
		if(Zastita[i] != 0)
		{
	    	Zastita[i]++; Novac1[i] = GetPlayerMoney(i);
			SetPVarInt(i, "SiguranVW", GetPlayerVirtualWorld(i));
			SetPVarInt(i, "SiguranInt", GetPlayerInterior(i));
			SetPVarInt(i, "SiguranTeleport", 0);
			new Float:Helti; new Float:Armor;
			GetPlayerHealth(i,Helti);
			SetPVarFloat(i,"SigurniHelti",Helti+2);
			GetPlayerArmour(i, Armor);
			SetPVarFloat(i,"SigurniArmor",Armor+2);
			new Float:TelX; new Float:TelY; new Float:TelZ;
			GetPlayerPos(i, TelX, TelY, TelZ);
			Pozicija[i][0] = TelX; Pozicija[i][1] = TelY; Pozicija[i][2] = TelZ;
			new Float:vhelti;
	 		GetVehicleHealth(GetPlayerVehicleID(i), vhelti);
     		if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
			{
	    		AutoHelti[i] = vhelti;
			}
	    	if(Zastita[i] == 2)
	    	{
	    		Zastita[i] = 0;
			}
		}
	}
	if(Sekunde == 2)
	{
	    new Float:TelX; new Float:TelY; new Float:TelZ;
	    GetPlayerPos(i, TelX, TelY, TelZ);
		Pozicija[i][0] = TelX;
    	Pozicija[i][1] = TelY;
     	Pozicija[i][2] = TelZ;
     	new Float:vhelti;
	 	GetVehicleHealth(GetPlayerVehicleID(i), vhelti);
     	if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
		{
	    	AutoHelti[i] = vhelti;
		}
		IgracSpamuje[i] = 0;
     	Sekunde = 0;
	}
 	if(MuteIgraca[i] != 0)
 	{
 	    MuteIgraca[i]--;
	}
	//=============================================[ANTI SPEED HACK]==================================
	if(PB == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
	 		if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
		    {
     			new Float:X, Float:Y, Float:Z, Float:km;
     			GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
     			km = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 135.0); // PROMENI ME PO POTREBI - SPEED2 (135.0)
     			new Brzina2 = floatround(floatdiv(km, 0.75), floatround_floor);
				if(Brzina2 > MBrzina)
				{
					new vozilo = GetPlayerVehicleID(i);
					GetPlayerName(i, ime, sizeof(ime));
					GetPlayerIp(i, ipadresa, sizeof(ipadresa));
					if(!Letelica(vozilo) && kikovan[i] == 0)
					{
    			    	kikovan[i] = 1;
						format(string, sizeof(string), "[LG] %s mozebi koristi Speed Hack (%d km/h) proverete go!",ime, Brzina2);
						ABroadCast(COLOR_CRVENA,string);
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG]Igracot %s koristi Speed Hack",d,m,y,h,mi,s,ime);
						log(string);
					}
				}
			}
		}
	}
//=====================[ANTI HIGH PING]=====================
	if(GetPVarInt(i, "Izbegavanje") == 0)
	{
		if(VP == 0)
		{
			new ping = GetPlayerPing(i);
			if(ping > MPing)
	    	{
	    		if(Zastita[i] == 0 && kikovan[i] == 0)
	    		{
	    		    kikovan[i] = 1;
			    	GetPlayerName(i, ime, sizeof(ime));
			    	GetPlayerIp(i, ipadresa, sizeof(ipadresa));
					format(string, sizeof(string), "[LG] %s ima visok ping: [%d/%d]",ime,ping,MPing);
                    ABroadCast(COLOR_CRVENA,string);
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s ima visok ping: [%d/%d]",d,m,y,h,mi,s,ime,ping,MPing);
					log(string);
				}
			}
		}
	}
//=====================[ZABRANJENA ORUZIJA - BAD WEAPONS]=====================
	new oruzije; new municija;
	if(ZO == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			for (new c = 0; c < 13; c++)
			{
				GetPlayerWeaponData(i, c, oruzije, municija);
				if (oruzije != 0 && municija != 0 && kikovan[i] == 0)
				{
					new o = GetPlayerWeapon(i);
					GetPlayerName(i, ime, sizeof(ime));
					GetPlayerIp(i, ipadresa, sizeof(ipadresa));
					if(o == 1||o == 8||o == 9||o == 16||o == 17||o == 18||o == 39||o == 40||o == 35||o == 36||o == 37||o == 38) // PROMENI PO POTREBI
					{
            			new oru = GetPlayerWeapon(i); new imeoruzija[24]; kikovan[i] = 1;
						GetWeaponName(oru,imeoruzija, sizeof(imeoruzija));
						format(string, sizeof(string), "[LG] %s igracot poseduva zabraneto oruzje: %s proverete go!",ime,imeoruzija);
                        ABroadCast(COLOR_CRVENA,string);
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s poseduva zabraneto oruzje: %s",d,m,y,h,mi,s,ime,imeoruzija);
						log(string);
						ResetPlayerWeapons(i);
					}
				}
			}
		}
	}
//=====================[ANTI JETPACK]=====================
	if(PJP == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			new jp = GetPlayerSpecialAction(i);
			if (jp == SPECIAL_ACTION_USEJETPACK && kikovan[i] == 0)
			{
				GetPlayerName(i, ime, sizeof(ime)); kikovan[i] = 1;
				GetPlayerIp(i, ipadresa, sizeof(ipadresa));
				format(string, sizeof(string), "[LG] %s mozebi koristi JetPack proverete go!",ime);
				SendClientMessageToAll(CRVENA, string);
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi JetPack",d,m,y,h,mi,s,ime);
				log(string);
			}
		}
	}
//=====================[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 && kikovan[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), "[LG] %s mozebi koristi Air Brake proverete go!",ime);
				ABroadCast(COLOR_CRVENA,string); kikovan[i] = 1;
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi AirBrake",d,m,y,h,mi,s,ime);
				log(string);
			}
			if(strcmp(anime,"WALK_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
			{
			    format(string, sizeof(string), "[LG] %s mozebi koristi Air Brake proverete go!",ime);
				ABroadCast(COLOR_CRVENA,string); kikovan[i] = 1;
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi AirBrake",d,m,y,h,mi,s,ime);
				log(string);
			}
		}
	}
//=====================[ANTI MONEY HACK]=====================
	if(NN == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			new novac = GetPlayerMoney(i);
			if(GetPVarInt(i, "SiguranNovac") == 0 && novac > Novac1[i] && Zastita[i] == 0 && kikovan[i] == 0)
			{
            	GetPlayerName(i, ime, sizeof(ime));
				SendClientMessage(i,ZUTA, "[LG] Parite ti se postaveni na realna vrednost poradi moznost za koristenje na Money Hack");
				ResetPlayerMoney (i);
				AC_BS_GivePlayerMoney (i, Novac1[i]);
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Money Hack",d,m,y,h,mi,s,ime);
				log(string);
				OpomenaNovca[i]++;
				if(OpomenaNovca[i] == 3)
				{
					ResetPlayerMoney (i); kikovan[i] = 1;
					AC_BS_GivePlayerMoney (i, Novac1[i]);
					GetPlayerName(i, ime, sizeof(ime));
		    		GetPlayerIp(i, ipadresa, sizeof(ipadresa));
		    		format(string, sizeof(string), "[LG] %s mozebi koristi Money Hack proverete go!",ime);
					ABroadCast(COLOR_CRVENA,string);
                	getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Money Hack",d,m,y,h,mi,s,ime);
					log(string);
				}
				if(GetPVarInt(i, "Izbegavanje") == 1)
				{
					format(string, sizeof(string), "[LG] %s koristi Money Hack, proverete go!",ime);
					SendClientMessage(i, CRVENA, string);
				}
			}
			if(GetPVarInt(i, "SiguranNovac") == 1)
			{
				Zastita[i] = 1;
				Novac1[i] = GetPlayerMoney(i);
				SetPVarInt(i, "SiguranNovac", 0);
			}
		}
	}
//=====================[ATNI HEALTH HACK]=====================
	if(NH == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			new Float:Helti;
			GetPlayerHealth(i,Helti);
			if(Helti < GetPVarFloat(i, "SigurniHelti"))
			{
			    SetPVarFloat(i,"SigurniHelti",Helti+2);
			}
			if(GetPVarFloat(i, "ZastitaHelta") == 1)
			{
				Zastita[i] = 1;
				SetPVarFloat(i,"ZastitaHelta",0);
			}
			if(KodSprunk(i))
			{
			    SetPVarFloat(i,"SigurniHelti",Helti+2);
			}
			if(Helti > GetPVarFloat(i, "SigurniHelti") && Zastita[i] == 0 && kikovan[i] == 0 && !KodSprunk(i))
			{
		    	GetPlayerName(i, ime, sizeof(ime)); kikovan[i] = 1;
		    	GetPlayerIp(i, ipadresa, sizeof(ipadresa));
				format(string, sizeof(string), "[LG] %s mozebi koristi Health Hack proverete go!",ime);
				ABroadCast(COLOR_CRVENA,string);
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Health Hack",d,m,y,h,mi,s,ime);
				log(string);
			}
		}
	}
//=====================[ANTI ARMOUR HACK]================
	if(NA == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			new Float:Armor;
			GetPlayerArmour(i, Armor);
			if(Armor < GetPVarFloat(i, "SigurniArmor"))
			{
			    SetPVarFloat(i,"SigurniArmor",Armor+2);
			}
			if(GetPVarFloat(i, "ZastitaArmora") == 1)
			{
				Zastita[i] = 1;
				SetPVarFloat(i,"ZastitaArmora",0);
			}
			if(Armor > GetPVarFloat(i, "SigurniArmor") && Zastita[i] == 0 && kikovan[i] == 0)
			{
		    	GetPlayerName(i, ime, sizeof(ime)); kikovan[i] = 1;
		    	GetPlayerIp(i, ipadresa, sizeof(ipadresa));
				format(string, sizeof(string), "[LG] %s koristi Armour Hack proverete go!",ime);
                ABroadCast(COLOR_CRVENA,string);
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Armour Hack",d,m,y,h,mi,s,ime);
				log(string);
			}
		}
	}
//====================[ANTI INTERIOR HACK]======================
	if(NT == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
		    if(GetPVarInt(i, "SiguranTeleport") == 1)
			{
			    Zastita[i] = 1;
			    SetPVarInt(i, "SiguranVW", GetPlayerVirtualWorld(i));
			    SetPVarInt(i, "SiguranInt", GetPlayerInterior(i));
				SetPVarInt(i, "SiguranTeleport", 0);
			}
	 		if(Zastita[i] == 0 && GetPVarInt(i, "SiguranTeleport") == 0 && GetPVarInt(i, "SiguranInt") != GetPlayerInterior(i))
			{
				GetPlayerName(i, ime, sizeof(ime));
  				GetPlayerIp(i, ipadresa, sizeof(ipadresa));
		    	if(kikovan[i] == 0)
		    	{
		    	    kikovan[i] = 1;
					format(string, sizeof(string), " %s mozebi koristi Interior Hack proverete go!",ime);
                    ABroadCast(COLOR_CRVENA,string);
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Interior Hack",d,m,y,h,mi,s,ime);
					log(string);
            	}
			}
		}
	}
//=====================[FLY PROVERA]=====================
	if(FP == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			new Float:FlyPozicijaZ; new Float:FlyPozicijaY; new Float:FlyPozicijaX;
			new ankategorija[320]; new anime[320]; new Float:helti2;
    		GetAnimationName(GetPlayerAnimationIndex(i),ankategorija,320,anime,320);
			GetPlayerPos(i, FlyPozicijaX, FlyPozicijaY, FlyPozicijaZ);
			GetPlayerName(i, ime, sizeof(ime)); GetPlayerHealth(i,helti2);
			GetPlayerIp(i, ipadresa, sizeof(ipadresa));
			if(strcmp(anime,"SWIM_CRAWL", false ) == 0 && strcmp(ankategorija,"SWIM", false ) == 0)
			{
				if(!IsPlayerInAnyVehicle(i) && FlyPozicijaZ > 100 && helti2 > 2 && Zastita[i] == 0)
				{
					FlyOpomena[i] = 1;
				}
			}
			if(strcmp(anime,"SWIM_BREAST", false ) == 0 && strcmp(ankategorija,"SWIM", false ) == 0)
			{
				if(!IsPlayerInAnyVehicle(i) && FlyPozicijaZ > 100 && helti2 > 2 && Zastita[i] == 0)
				{
					FlyOpomena[i] = 1;
				}
			}
			if(strcmp(anime,"SWIM_TREAD", false ) == 0 && strcmp(ankategorija,"SWIM", false ) == 0)
			{
				if(!IsPlayerInAnyVehicle(i) && FlyPozicijaZ > 100 && helti2 > 2 && Zastita[i] == 0)
				{
					FlyOpomena[i] = 1;
				}
			}
			if(FlyOpomena[i]== 1 && kikovan[i] == 0)
			{
			    kikovan[i] = 1;
				format(string, sizeof(string), "[LG]%s mozebi koristi Fly Hack proverete go!",ime);
				ABroadCast(COLOR_CRVENA,string);
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Fly Hack",d,m,y,h,mi,s,ime);
				log(string);
				FlyOpomena[i] = 0;
			}
		}
	}
//======================================[TELEPORT PROVERA]==============================
 	if(ANT == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
		    new Float:TePoZ; new Float:TePoY; new Float:TePoX;
			GetPlayerPos(i, TePoX, TePoY, TePoZ);
			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]) > 220 && Zastita[i] == 0 && GetPlayerInterior(i) == 0 && TePoZ >= 1 && !IsPlayerInRangeOfPoint(i, 35, 131.7287,-67.8546,1.5781) && kikovan[i] == 0 && GetPVarInt(i, "SiguranTeleport") == 0 && AFK2[i] == 0)
			{
			    new ankategorija[320]; new anime[320];
    			GetAnimationName(GetPlayerAnimationIndex(i),ankategorija,320,anime,320);
				if(strcmp(anime,"FALL_FALL", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
				{
					return 1;
				}
				if(strcmp(anime,"RUN_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
				{
					return 1;
				}
				if(strcmp(anime,"WALK_PLAYER", false ) == 0 && strcmp(ankategorija,"PED", false ) == 0)
				{
					return 1;
				}
    			if(IsPlayerInRangeOfPoint(i, 5, -1935.77, 228.79, 34.16)||IsPlayerInRangeOfPoint(i, 5, -2707.48, 218.65, 4.9)||IsPlayerInRangeOfPoint(i, 5, 2645.61, -2029.15, 14.28)||IsPlayerInRangeOfPoint(i, 5, 1041.26, -1036.77, 32.48)||
				IsPlayerInRangeOfPoint(i, 5, 2387.55, 1035.70, 11.56)||IsPlayerInRangeOfPoint(i, 5, 1836.93, -1856.28, 14.13)||IsPlayerInRangeOfPoint(i, 5, 2006.11, 2292.87, 11.57)||IsPlayerInRangeOfPoint(i, 5, -1787.25, 1202.00, 25.84)||
				IsPlayerInRangeOfPoint(i, 5, 720.10, -470.93, 17.07)||IsPlayerInRangeOfPoint(i, 5, -1420.21, 2599.45, 56.43)||IsPlayerInRangeOfPoint(i, 5, -100.16, 1100.79, 20.34)||IsPlayerInRangeOfPoint(i, 5, 2078.44, -1831.44, 14.13)||
				IsPlayerInRangeOfPoint(i, 5, -2426.89, 1036.61, 51.14)||IsPlayerInRangeOfPoint(i, 5, 1957.96, 2161.96, 11.56)||IsPlayerInRangeOfPoint(i, 5, 488.29, -1724.85, 12.01)||IsPlayerInRangeOfPoint(i, 5, 1025.08, -1037.28, 32.28)||
				IsPlayerInRangeOfPoint(i, 5, 2393.70, 1472.80, 11.42)||IsPlayerInRangeOfPoint(i, 5, -1904.97, 268.51, 41.04)||IsPlayerInRangeOfPoint(i, 5, 403.58, 2486.33, 17.23)||IsPlayerInRangeOfPoint(i, 5, 1578.24, 1245.20, 11.57)||
				IsPlayerInRangeOfPoint(i, 5, -2105.79, 905.11, 77.07)||IsPlayerInRangeOfPoint(i, 5, 423.69, 2545.99, 17.07)||IsPlayerInRangeOfPoint(i, 5, 785.79, -513.12, 17.44)||IsPlayerInRangeOfPoint(i, 5, -2027.34, 141.02, 29.57)||
    			IsPlayerInRangeOfPoint(i, 5, 1698.10, -2095.88, 14.29)||IsPlayerInRangeOfPoint(i, 5, -361.10, 1185.23, 20.49)||IsPlayerInRangeOfPoint(i, 5, -2463.27, -124.86, 26.41)||IsPlayerInRangeOfPoint(i, 5, 2505.64, -1683.72, 14.25)||
				IsPlayerInRangeOfPoint(i, 5, 1350.76, -615.56, 109.88)||IsPlayerInRangeOfPoint(i, 5, 2231.64, 156.93, 27.63)
				)
				{
				    kikovan[i] = 1;
	    			format(string, sizeof(string), "[LG] %s  mozebi koristi Teleport Hack proverete go!",ime);
					ABroadCast(COLOR_CRVENA,string);
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Teleport Hack",d,m,y,h,mi,s,ime);
					log(string);
				}
				if(IsPlayerInRangeOfPoint(i, 5, -2695.51, 810.70, 50.57) || IsPlayerInRangeOfPoint(i, 5, 1293.61, 2529.54, 11.42)||IsPlayerInRangeOfPoint(i, 5, 1401.34, 1903.08, 11.99)||IsPlayerInRangeOfPoint(i, 5, 2436.50, 698.43, 11.60)||
				IsPlayerInRangeOfPoint(i, 5, 322.65, -1780.30, 5.55)||IsPlayerInRangeOfPoint(i, 5, 917.46, 2012.14, 11.65)||IsPlayerInRangeOfPoint(i, 5, 1641.14, -1526.87, 14.30)||IsPlayerInRangeOfPoint(i, 5, -1617.58, 688.69, -4.50)||
				IsPlayerInRangeOfPoint(i, 5, 837.05, -1101.93, 23.98)||IsPlayerInRangeOfPoint(i, 5, 2338.32, -1180.61, 1027.98)||IsPlayerInRangeOfPoint(i, 5, -975.5766, 1061.1312, 1345.6719)||IsPlayerInRangeOfPoint(i, 5, -750.80, 491.00, 1371.70)||
				IsPlayerInRangeOfPoint(i, 5, -1400.2138, 106.8926, 1032.2779)||IsPlayerInRangeOfPoint(i, 5, -2015.6638, 147.2069, 29.3127)||IsPlayerInRangeOfPoint(i, 5, 2220.26, -1148.01, 1025.80)||IsPlayerInRangeOfPoint(i, 5, -2660.6185, 1426.8320, 907.3626)||
				IsPlayerInRangeOfPoint(i, 5, -1394.20, 987.62, 1023.96)||IsPlayerInRangeOfPoint(i, 5, -1410.72, 1591.16, 1052.53)||IsPlayerInRangeOfPoint(i, 5, 315.8561, 1024.4964, 1949.7973)||IsPlayerInRangeOfPoint(i, 5, 2536.08, -1632.98, 13.79)||
				IsPlayerInRangeOfPoint(i, 5, 1992.93, 1047.31, 10.82)||IsPlayerInRangeOfPoint(i, 5, 2033.00, -1416.02, 16.99)||IsPlayerInRangeOfPoint(i, 5, -2653.11, 634.78, 14.45)||IsPlayerInRangeOfPoint(i, 5, 1580.22, 1768.93, 10.82)||
				IsPlayerInRangeOfPoint(i, 5, -1550.73, 99.29, 17.33)||IsPlayerInRangeOfPoint(i, 5, -2057.8000, 229.9000, 35.6204)||IsPlayerInRangeOfPoint(i, 5, -2366.0000, -1667.4000, 484.1011)||IsPlayerInRangeOfPoint(i, 5, 2503.7000, -1705.8000, 13.5480)||
				IsPlayerInRangeOfPoint(i, 5, 1997.9000, 1056.3000, 10.8203)||IsPlayerInRangeOfPoint(i, 5, -2872.7000, 2712.6001, 275.2690)||IsPlayerInRangeOfPoint(i, 5, 904.1000, 608.0000, -32.3281)||IsPlayerInRangeOfPoint(i, 5, -236.9000, 2663.8000, 73.6513)
				)
				{
				    kikovan[i] = 1;
					format(string, sizeof(string), "[LG] %s mozebi koristi Teleport Hack proverete go!",ime);
					ABroadCast(COLOR_CRVENA,string);
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Teleport Hack",d,m,y,h,mi,s,ime);
					log(string);
				}
				if(ANT2 == 1)
				{
				    kikovan[i] = 1;
					format(string, sizeof(string), "[LG] %s mozebi koristi Teleport Hack proverete go!",ime);
					ABroadCast(COLOR_CRVENA,string);
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Teleport Hack",d,m,y,h,mi,s,ime);
					log(string);
				}
			}
		}
	}
//=============================[VEHICLE REPAIR]============================
	if(AVR == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
			new Float:vhelti; GetVehicleHealth(GetPlayerVehicleID(i), vhelti);
			GetPlayerName(i, ime, sizeof(ime));
			if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
			{
				if(vhelti < AutoHelti[i])
				{
	    			AutoHelti[i] = vhelti;
				}
				if(GetPVarInt(i, "PopravkaVozila") == 1)
				{
				    AutoHelti[i] = vhelti;
				    SetPVarInt(i, "PopravkaVozila", 0);
				}
				if(IsPlayerInRangeOfPoint(i, 15, 719.9484,-457.3498,16.4282) || IsPlayerInRangeOfPoint(i, 15, -1420.6052,2584.6243,55.9356) || IsPlayerInRangeOfPoint(i, 15, -99.7463,1116.9677,19.8340)|| IsPlayerInRangeOfPoint(i, 15, 2063.4375,-1831.9276,13.6391)||
       				IsPlayerInRangeOfPoint(i, 15, -2425.9333,1022.5239,50.4900) || IsPlayerInRangeOfPoint(i, 15, 1974.0004,2162.5266,11.1561) || IsPlayerInRangeOfPoint(i, 15, 487.5558,-1739.5125,11.2265)|| IsPlayerInRangeOfPoint(i, 15, 1025.3940,-1024.2563,32.1938)||
   					IsPlayerInRangeOfPoint(i, 15, 2393.6174,1489.2686,10.9246)||IsPlayerInRangeOfPoint(i, 15, -1905.1163,283.4408,41.1392))
				{
				    AutoHelti[i] = vhelti;
				    SetPVarInt(i, "PopravkaVozila", 1);
				}
 				if(vhelti > AutoHelti[i] && Zastita[i] == 0 && GetPlayerInterior(i) == 0 && kikovan[i] == 0 && GetPVarInt(i, "PopravkaVozila") == 0)
 				{
 		    		if(!IsPlayerInRangeOfPoint(i, 15, 719.9484,-457.3498,16.4282) || !IsPlayerInRangeOfPoint(i, 15, -1420.6052,2584.6243,55.9356) || !IsPlayerInRangeOfPoint(i, 15, -99.7463,1116.9677,19.8340)|| !IsPlayerInRangeOfPoint(i, 15, 2063.4375,-1831.9276,13.6391)||
       				!IsPlayerInRangeOfPoint(i, 15, -2425.9333,1022.5239,50.4900) || !IsPlayerInRangeOfPoint(i, 15, 1974.0004,2162.5266,11.1561) || !IsPlayerInRangeOfPoint(i, 15, 487.5558,-1739.5125,11.2265)|| !IsPlayerInRangeOfPoint(i, 15, 1025.3940,-1024.2563,32.1938)||
   					!IsPlayerInRangeOfPoint(i, 15, 2393.6174,1489.2686,10.9246)||!IsPlayerInRangeOfPoint(i, 15, -1905.1163,283.4408,41.1392))
   					{
 	    				kikovan[i] = 1;
						format(string, sizeof(string), "[LG] %s mozebi koristi Vehicle Repair(Cheat) proverete go!",ime);
						ABroadCast(COLOR_CRVENA,string);
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s koristi Vehicle Repair Cheat",d,m,y,h,mi,s,ime);
						log(string);
					}
 				}
			}
		}
	}
//==================================[ANTI AFK]=======================
	if(AAFK == 1)
	{
		if(GetPVarInt(i, "Izbegavanje") == 0)
		{
		    if(AFK[i] >= 13 && AFK2[i] == 0)
		    {
		        AFK2[i] = 1;
			}
			if(AFK[i] > MAXAFK)
			{
			    if(kikovan[i] == 0)
				{
		    		kikovan[i] = 1;
					format(string, sizeof(string), "%s %s e isklucen poradi AFK (%d minuti)",acime, ime, MAXAFK/60);
                    ABroadCast(COLOR_CRVENA,string);
					format(string2, sizeof(string2),"{CD0000}Isklucen ste!\n{FFF8DC}Ime:{CD0000} %s\n{FFF8DC}Pricina:{CD0000} AFK (%d minuti)\n{FFF8DC}IP:{CD0000} %s\n \n{CD0000}Dokolku e greska prijavete na nasiot forum.Adresa: %s",ime,MAXAFK/60,ipadresa,forum);
					ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}[LG]",string2, "Ok", "");
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d] [LG] %s e isklucen poradi AFK",d,m,y,h,mi,s,ime);
					log(string);
					SetTimerEx("kick",10, false, "i", i);
				}
			}
		}
	}
}
return 1;
}
public ABroadCast(color,const string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
            if (PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pTester] >= 1)
			{
				SendClientMessage(i, color, string);
			}
		}
	}
	return 1;
}
//------------------[ANTICHEAT KOMANDE]---------------------
CMD:anticheat(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1338) return SendClientMessage(playerid, COLOR_CRVENA, "Ne mozete da ja koristite ovaa komanda!");
	{
	new string[900];
	new komande[] = "1. Vkluci/Iskluci: Ping\n2. Vkluci/Iskluci: Anti JetPack\n3. Vkluci/Iskluci: Anti Speed Hack\n4. Vkluci/Iskluci: Proverka na Oruzje\n5. Vkluci/Iskluci: Anti RCON Hack\n6. Vkluci/Iskluci: Cenzura\n7. Vkluci/Iskluci: Anti Drive By\n8. Vkluci/Iskluci: Anti Bunny Hop\n9. Vkluci/Iskluci: Anti AirBrake\n10. Ukluci/Iskluci: Anti Money Hack";
	new komande2[] = "\n11. Vkluci/Iskluci: Anti Health Hack\n12. Vkluci/Iskluci: Anti Armor Hack\n13. Vkluci/Iskluci: Anti Interior Hack\n14. Vkluci/Iskluci: Anti Fly Hack\n15. Vkluci/Iskluci: Anti Teleport[1]\n16. Vkluci/Iskluci: Anti Teleport[2]\n17. Vkluci/Iskluci: Anti Vehicle Repair\n18. Vkluci/Iskluci: Anti Spam\n19. Vkluci/Iskluci: Anti AFK";
	format(string, sizeof(string),"%s %s",komande,komande2);
	ShowPlayerDialog(playerid, 19999, DIALOG_STYLE_LIST, "[Podesavanje AntiCheat-a]",string, "Ok", "Odustani");
	return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
		if(dialogid == 19999)
		{
			if(response)
			{
				if(listitem == 0)
				{
				if(VP == 1)
				    {
				        SendClientMessage(playerid, BELA, "Ja isklucivte proverkata na Ping");
				        VP = 0;
					}
					else if(VP == 0)
					{
					    SendClientMessage(playerid, BELA, "Ja vklucivte proverkata za Ping");
				        VP = 1;
					}
				}
				else if(listitem == 1) // jetpack
				{
				    if(PJP == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti JetPack");
				        PJP = 0;
					}
					else if(PJP == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti JetPack");
				        PJP = 1;
					}
				}
				else if(listitem == 2)// brzina
				{
				    if(PB == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Speed Hack");
				        PB = 0;
					}
					else if(PB == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Speed Hack");
				        PB = 1;
					}
				}
				else if(listitem == 3)// zabranjena oruzija
				{
				    if(ZO == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go islucivte modot za proverka na Oruzje");
				        ZO = 0;
					}
					else if(ZO == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za proverka na Oruzje!");
				        ZO = 1;
					}
				}
				else if(listitem == 4) // rcon zastita
				{
				    if(RCONZ == 1)
				    {
				        RCONZ = 0;
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti RCON Hack!");
					}
					else if(RCONZ == 0)
				    {
                        RCONZ = 1;
						SendClientMessage(playerid, BELA, "Go vklucivte modot Anti RCON Hack");
					}
				}
				else if(listitem == 5) // zabranjene reci
				{
				    if(ZR == 1)
				    {
				        ZR = 0;
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Cenzura!");
					}
					else if(ZR == 0)
				    {
                        ZR = 1;
						SendClientMessage(playerid, BELA, "Go uklucivte modot za Cenzura");
					}
				}
				else if(listitem == 6)// drive by provera
				{
				    if(DBP == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Drive By!");
				        DBP = 0;
					}
					else if(DBP == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Drive By!");
				        DBP = 1;
					}
				}
				else if(listitem == 7)// bunny hop provera
				{
				    if(BHP == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Bunny Hop!");
				        BHP = 0;
					}
					else if(BHP == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Bunny Hop!");
				        BHP = 1;
					}
				}
				else if(listitem == 8)// air brake provera
				{
				    if(PAB == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti AirBrake!");
				        PAB = 0;
					}
					else if(PAB == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti AirBrake!");
				        PAB = 1;
					}
				}
				else if(listitem == 9)// provera protiv cita za novac
				{
				    if(NN == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Money Hack!");
				        NN = 0;
					}
					else if(NN == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Money Hack!");
				        NN = 1;
					}
				}
				else if(listitem == 10)// provera protiv cita za helte
				{
				    if(NH == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Health Hack!");
				        NH = 0;
					}
					else if(NH == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Health Hack!");
				        NH = 1;
					}
				}
				else if(listitem == 11)// provera protiv cita za armor
				{
				    if(NA == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Armour Hack!");
				        NA = 0;
					}
					else if(NA == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Armour Hack!");
				        NA = 1;
					}
				}
				else if(listitem == 12)// provera protiv interior hack-a
				{
				    if(NT == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Interior Hack!!!");
				        NT = 0;
					}
					else if(NT == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Interior Hack!!!");
				        NT = 1;
					}
				}
				else if(listitem == 13)// provera protiv fly hack-a
				{
				    if(FP == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Fly Hack!");
				        FP = 0;
					}
					else if(FP == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Fly Hack!");
				        FP = 1;
					}
				}
				else if(listitem == 14)// anti teleport[1]
				{
				    if(ANT == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Teleport[1]");
				        ANT = 0;
					}
					else if(ANT == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Teleport[1]!");
				        ANT = 1;
					}
				}
				else if(listitem == 15)// anti teleport[2]
				{
				    if(ANT2 == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Teleport[2]");
				        ANT2 = 0;
					}
					else if(ANT2 == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Teleport[2]!");
				        ANT2 = 1;
					}
				}
				else if(listitem == 16)// anti vehicle repair
				{
				    if(AVR == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Vehicle Repair");
				        AVR = 0;
					}
					else if(AVR == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Vehicle Repair!");
				        AVR = 1;
					}
				}
				else if(listitem == 17)// anti spam
				{
				    if(AS == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti Spam");
				        AS = 0;
					}
					else if(AS == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti Spam!");
				        AS = 1;
					}
				}
				else if(listitem == 18)// anti afk
				{
				    if(AAFK == 1)
				    {
				        SendClientMessage(playerid, BELA, "Go isklucivte modot za Anti AFK");
				        AAFK = 0;
					}
					else if(AAFK == 0)
				    {
				        SendClientMessage(playerid, BELA, "Go vklucivte modot za Anti AFK!");
				        AAFK = 1;
					}
				}
			}
			SnimiAC();
		}
		return 1;
}
//#error PO DRUGI PUT PROCITAJ INSTALIRANJE.TXT
And give me this 26 errors:
Код:
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(131) : error 017: undefined symbol "UcitajAC"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(143) : error 017: undefined symbol "StripNewLine"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(305) : error 004: function "ABroadCast" is not implemented
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(309) : error 017: undefined symbol "log"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(316) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(316) : error 004: function "OnPlayerDeath" is not implemented
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(318) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(323) : error 017: undefined symbol "killerid"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(325) : error 017: undefined symbol "killerid"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(327) : error 017: undefined symbol "killerid"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(329) : error 017: undefined symbol "killerid"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(330) : error 017: undefined symbol "killerid"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(331) : error 017: undefined symbol "killerid"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(333) : error 004: function "ABroadCast" is not implemented
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(337) : error 017: undefined symbol "log"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(346) : warning 225: unreachable code
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(346) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(346) : error 004: function "OnRconLoginAttempt" is not implemented
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(350) : error 017: undefined symbol "success"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(352) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(358) : error 017: undefined symbol "ip"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(374) : error 004: function "ABroadCast" is not implemented
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(378) : error 017: undefined symbol "log"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(388) : warning 225: unreachable code
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(388) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(388) : error 004: function "OnPlayerSpawn" is not implemented
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(400) : warning 225: unreachable code
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(400) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(400) : error 017: undefined symbol "SetPlayerSpawn"
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(410) : warning 225: unreachable code
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(410) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\AC - Balkan Security v0.9\filterscripts\ACBS.pwn(410) : error 004: function "OnPlayerText" is not implemented
How to fix this please help ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)