01.06.2014, 09:25
Well, it's pretty easy to create an anti money cheat :
PHP код:
#define GivePlayerMoney AC_GivePlayerMoney
#define ResetPlayerMoney AC_ResetPlayerMoney
new bool:pMoney[MAX_PLAYERS], oldM[MAX_PLAYERS];
stock AC_GivePlayerMoney(playerid, money)
{
pMoney[playerid] = true;
GivePlayerMoney(playerid, money);
SetTimerEx("stopMoney", 50, false, "i", playerid);
return 1;
}
stock AC_ResetPlayerMoney(playerid)
{
pMoney[playerid] = true;
ResetPlayerMoney(playerid);
SetTimerEx("stopMoney", 50, false, "i", playerid);
return 1;
}
forward stopMoney(playerid);
public stopMoney(playerid) { pMoney[playerid] = false; return 1; }
public OnPlayerUpdate(playerid)
{
new money = GetPlayerMoney(playerid);
if(money != oldM[playerid] && !pMoney[playerid])
{
// The player cheats
}
oldM[playerid] = money;
return 1;
}