01.01.2012, 16:18
(
Последний раз редактировалось PawnoQ; 01.01.2012 в 17:36.
)
hi,
i made a kinda anti cheat and my questions is if i shall the float define for max players or if in this case only this would be enough:
or like this?
i made a kinda anti cheat and my questions is if i shall the float define for max players or if in this case only this would be enough:
pawn Код:
new Float:pArmourtmp;
new Float:pHealthtmp;
GetPlayerArmour(i,pArmourtmp);
GetPlayerHealth(i,pHealthtmp);
pawn Код:
//OnGameModeInit
SetTimer("AntiCheat", 1000, true);
//Timer
forward AntiCheat();
public AntiCheat()
{
foreach(Player, i)
{
new Float:pArmourtmp[MAX_PLAYERS];
new Float:pHealthtmp[MAX_PLAYERS];
GetPlayerArmour(i,pArmourtmp[i]);
GetPlayerHealth(i,pHealthtmp[i]);
if(pHealthtmp[i] > 99)
{
//kick due health hacks
}
}
return 1;
}