SA-MP Forums Archive
My anti airbreak is right? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: My anti airbreak is right? (/showthread.php?tid=600530)



My anti airbreak is right? - pedrotvr - 09.02.2016

My anti airbreak is right?

KillTimer(timerAtualizarPlayer[playerid]);
timerAtualizarPlayer[playerid] = SetTimerEx("AtualizarPlayer", 500, true, "i", playerid);

public AtualizarPlayer(playerid) {
Код:
	// anti airbreak
	new Float:x,Float:y,Float:z;
	GetPlayerPos(playerid, x, y, z);
	if(GetPlayerPos(playerid) >= x, y, 200 && GetPlayerSpeed(playerid, true) == 0) {
		format(string, sizeof(string), "ANTICHEAT: %s foi detectado por: AIRBREAK", PlayerName(playerid) );
		ABroadCast(COLOR_LIGHTGREEN,string,3);
	}