29.09.2013, 15:47
Quote:
Can you show us the anticheat code, For example, The code to detect wether or not the player is hacking?
|
Код:
new Float:health, Float:armour; GetPlayerHealth(playerid, health); GetPlayerArmour(playerid, armour); if(health != GetPVarFloat(playerid, "Health")) { SetPlayerHealth(playerid, GetPVarFloat(playerid, "Health")); } if(armour != GetPVarFloat(playerid, "Armour")) { SetPlayerArmour(playerid, GetPVarFloat(playerid, "Armour")); }
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { new Float:p[2]; CDM_GetPlayerHealth(issuerid, p[0]); CDM_GetPlayerArmour(issuerid, p[1]); if(p[1] != 0) CDM_SetPlayerArmour(issuerid, p[1]-amount); else if(!p[1]) CDM_SetPlayerHealth(issuerid, p[0]-amount); if(amount != 0 && p[0] == 100.0) { for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && player[i][adminlevel] != 0) { message[0] = EOS; SendFormatMessageToAll(color_red, message, "(AC) {FFFFFF}%s {FF0000}has using hacks (reason: Godmode Hack)", getname[issuerid]); } } return 1; }
HELP.