16.12.2015, 21:46
PHP код:
public OnPlayerSpawn(playerid)
{
SetPlayerArmour(playerid, 99);
SetPlayerHealth(playerid, 99);
return 1;
}
public OnPlayerUpdate(playerid)
{
new Float:pHealth;
GetPlayerHealth(playerid, pHealth);
if(pHealth > 99)
{
SendClientMessage(playerid, -1, "{FF0000} You Got Banned for Health Hacking [ HP Exceeded 99 ]");
Ban(playerid);
}
new Float:pArmour;
GetPlayerArmour(playerid, pArmour);
if(pArmour > 99)
{
SendClientMessage(playerid, -1, "{FF0000} You Got Banned for Armour Hacking [ AP Exceeded 99 ]");
Ban(playerid);
}
return 1;
}