Quote:
Originally Posted by [BOPE]Seu._.Madruga
PHP код:
new Float: vida[MAX_PLAYERS];
new Float: colete[MAX_PLAYERS];
GetPlayerHealth(playerid, vida[playerid]);
if(vida[playerid] > GetPVarFloat(playerid, #PlayerVida))
{
new giveplayer[MAX_PLAYER_NAME], bstring[128];
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(bstring, sizeof(bstring), "ANTICHEAT: %s foi detectado por: HEALTH HACK", giveplayer );
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
SetPlayerHealthEx(playerid, 5);
}
GetPlayerArmour(playerid, colete[playerid]);
if(colete[playerid] > GetPVarFloat(playerid, #PlayerColete))
{
new giveplayer[MAX_PLAYER_NAME], bstring[128];
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(bstring, sizeof(bstring), "ANTICHEAT: %s foi detectado por: ARMOUR HACK", giveplayer );
ABroadCast(COLOR_LIGHTGREEN,bstring,3);
SetPlayerArmourEx(playerid, 0);
}
|
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);
}