Originally Posted by pds2012
simple tip: i tried on my server making a health anti what i did is
pawn Код:
public OnPlayerConnect { SetPlayerHealth(playerid, 99.99);//just incase to avoid bug return 1; } public OnPlayerSpawn { SetPlayerHealth(playerid, 99.99);// there is no any changes at your health bar return 1; }
if you still got all things that has SetPlayerHealth(playerid, 100); change it to SetPlayerHealth(playerid, 99.99);
and when you detect it as a hacker
GetPlayerHealth(playerid, 100);
hope you understand it
also you need to remove the things that gives you health on default samp here
Credits to Cessil
pawn Код:
public OnPlayerConnect { RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0); RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0); RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0); RemoveBuildingForPlayer(playerid, 956, 0.0, 0.0, 0.0, 6000.0); RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0); RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0); RemoveBuildingForPlayer(playerid, 1977, 0.0, 0.0, 0.0, 6000.0); return 1; }
|