[Ajuda] Ajuda anti hacker avisos falsos
#1

Alguem me ajuda com meu anti hacker vida/colete? Ta dando muitos avisos falsos

SetTimerEx("checagemhack", 500, 1, "i", playerid);

public checagemhack(playerid)
Код:
	// verificaзгo:
	new Float: vida;
	GetPlayerHealth(playerid, vida);
	if(vida > GetPVarFloat(playerid, #PlayerVida)) {
		new giveplayer[MAX_PLAYER_NAME];
		new bstring[128];
		GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
		format(bstring, sizeof(bstring), "ANTICHEAT: %s foi detectado por: HEALTH HACK", PlayerName(playerid) );
		ABroadCast(COLOR_LIGHTGREEN,bstring,3);
		SetPlayerHealthEx(playerid, 5);
	}
	
	new Float: colete;
	GetPlayerArmour(playerid, colete);
	if(colete > GetPVarFloat(playerid, #PlayerColete)) {
		new giveplayer[MAX_PLAYER_NAME];
		new bstring[128];
		GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
		format(bstring, sizeof(bstring), "ANTICHEAT: %s foi detectado por: ARMOUR HACK", PlayerName(playerid) );
		ABroadCast(COLOR_LIGHTGREEN,bstring,3);
		SetPlayerArmourEx(playerid, 0);
	}
Reply
#2

Manda a funзao do Ant Cheater Toda
Reply
#3

PHP код:
new Floatvida[MAX_PLAYERS];
new 
Floatcolete[MAX_PLAYERS];

GetPlayerHealth(playeridvida[playerid]);
if(
vida[playerid] > GetPVarFloat(playerid#PlayerVida))
{
    new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
    
GetPlayerName(playeridgiveplayersizeof(giveplayer));
    
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: HEALTH HACK"giveplayer );
    
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
    
SetPlayerHealthEx(playerid5);
}


GetPlayerArmour(playeridcolete[playerid]);
if(
colete[playerid] > GetPVarFloat(playerid#PlayerColete))
{
    new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
    
GetPlayerName(playeridgiveplayersizeof(giveplayer));
    
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: ARMOUR HACK"giveplayer );
    
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
    
SetPlayerArmourEx(playerid0);

Reply
#4

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
PHP код:
new Floatvida[MAX_PLAYERS];
new 
Floatcolete[MAX_PLAYERS];
GetPlayerHealth(playeridvida[playerid]);
if(
vida[playerid] > GetPVarFloat(playerid#PlayerVida))
{
    new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
    
GetPlayerName(playeridgiveplayersizeof(giveplayer));
    
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: HEALTH HACK"giveplayer );
    
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
    
SetPlayerHealthEx(playerid5);
}
GetPlayerArmour(playeridcolete[playerid]);
if(
colete[playerid] > GetPVarFloat(playerid#PlayerColete))
{
    new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
    
GetPlayerName(playeridgiveplayersizeof(giveplayer));
    
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: ARMOUR HACK"giveplayer );
    
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
    
SetPlayerArmourEx(playerid0);

Te dei um rep, mas ta dando muito aviso de anti cheat errado, qnd toma mts tiros, qnd desloga dps q toma tiro ainda fica dando aviso, mt bizarro, serб q й por isso \/?

Код:
stock SetPlayerHealthEx(playerid, Float: vida)
{
    SetPVarFloat(playerid, #PlayerVida, vida);
    return SetPlayerHealth(playerid, vida);
}
stock SetPlayerArmourEx(playerid, Float: colete)
{
    SetPVarFloat(playerid, #PlayerColete, colete);
    return SetPlayerArmour(playerid, colete);
}
Reply
#5

Posta seu sistema de anti hack completo
Reply
#6

Ta tudo aн brother :S
Reply
#7

PHP код:
enum hInfo {
    
Float:vida,
    
Float:colete,
    
TIMERcheck
}
new 
HackInfo[MAX_PLAYERS][hInfo];
forward CheckHack(playerid);
public 
OnPlayerDisconnect(playeridreason)
{
    
KillTimer(HackInfo[playerid][TIMERcheck]);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
KillTimer(HackInfo[playerid][TIMERcheck]);
    
HackInfo[playerid][TIMERcheck] = SetTimerEx("CheckHack"1000true"i"playerid);
    return 
1;
}
public 
CheckHack(playerid)
{
    
GetPlayerHealth(playeridHackInfo[playerid][vida]);
    
GetPlayerArmour(playeridHackInfo[playerid][colete]);
    if(
HackInfo[playerid][vida] > GetPVarFloat(playerid"PlayerVida"))
    {
        new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
        
GetPlayerName(playeridgiveplayersizeof(giveplayer));
        
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: HEALTH HACK"giveplayer );
        
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
        
SetPlayerHealthEx(playerid5);
    }
    if(
HackInfo[playerid][colete] > GetPVarFloat(playerid"PlayerColete"))
    {
        new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
        
GetPlayerName(playeridgiveplayersizeof(giveplayer));
        
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: ARMOUR HACK"giveplayer );
        
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
        
SetPlayerArmourEx(playerid0);
    }
    return 
1;
}
stock SetPlayerHealthEx(playeridFloatvidas)
{
    
SetPVarFloat(playerid"PlayerVida"vidas);
    return 
SetPlayerHealth(playeridvidas);
}
stock SetPlayerArmourEx(playeridFloatcoletes)
{
    
SetPVarFloat(playerid"PlayerColete"coletes);
    return 
SetPlayerArmour(playeridcoletes);

Reply
#8

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
PHP код:
enum hInfo {
    
Float:vida,
    
Float:colete,
    
TIMERcheck
}
new 
HackInfo[MAX_PLAYERS][hInfo];
forward CheckHack(playerid);
public 
OnPlayerDisconnect(playeridreason)
{
    
KillTimer(HackInfo[playerid][TIMERcheck]);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
KillTimer(HackInfo[playerid][TIMERcheck]);
    
HackInfo[playerid][TIMERcheck] = SetTimerEx("CheckHack"1000true"i"playerid);
    return 
1;
}
public 
CheckHack(playerid)
{
    
GetPlayerHealth(playeridHackInfo[playerid][vida]);
    
GetPlayerArmour(playeridHackInfo[playerid][colete]);
    if(
HackInfo[playerid][vida] > GetPVarFloat(playerid"PlayerVida"))
    {
        new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
        
GetPlayerName(playeridgiveplayersizeof(giveplayer));
        
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: HEALTH HACK"giveplayer );
        
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
        
SetPlayerHealthEx(playerid5);
    }
    if(
HackInfo[playerid][colete] > GetPVarFloat(playerid"PlayerColete"))
    {
        new 
giveplayer[MAX_PLAYER_NAME], bstring[128];
        
GetPlayerName(playeridgiveplayersizeof(giveplayer));
        
format(bstringsizeof(bstring), "ANTICHEAT: %s foi detectado por: ARMOUR HACK"giveplayer );
        
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
        
SetPlayerArmourEx(playerid0);
    }
    return 
1;
}
stock SetPlayerHealthEx(playeridFloatvidas)
{
    
SetPVarFloat(playerid"PlayerVida"vidas);
    return 
SetPlayerHealth(playeridvidas);
}
stock SetPlayerArmourEx(playeridFloatcoletes)
{
    
SetPVarFloat(playerid"PlayerColete"coletes);
    return 
SetPlayerArmour(playeridcoletes);

outro rep ai

mas agora o sv ta acusando como xiter qnd faz mudanзa rapida na vida/colete tipo qnd da tiro de mp5, ak...
qnd o server seta o maximo de vida e alguem junto faz outra parada, acusa como cheat
Reply
#9

Fico me perguntando o que vocкs tem na mente pra usar uma "proteзгo anti-cheater" que nem hook usa, hook й fundamental pra isso, PVars pra anti-cheater? Sйrio? Que tenso
Reply
#10

Quote:
Originally Posted by ipsLeon
Посмотреть сообщение
Fico me perguntando o que vocкs tem na mente pra usar uma "proteзгo anti-cheater" que nem hook usa, hook й fundamental pra isso, PVars pra anti-cheater? Sйrio? Que tenso
Pq mano?
E como seria desse outro jeito...
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)