07.09.2015, 20:21
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);
}