//======================Анти-деньги=================================================
public Paul_Norck_ANTI_HACK()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
//ÍÀ×ÀËÎ ÀÍÒÈ-ÄÅÍÜÃÈ
if(DengiTime[i] == 0)
{
if((GetPlayerMoney(i) != PlayerInfo[i][pCash]))
{
new raz = GetPlayerMoney(i) - PlayerInfo[i][pCash];
if(raz <= 50 && raz > 0)
{
GivePlayerMoney(i,- raz);
}
else if(raz > 50)
{
new plname[MAX_PLAYER_NAME];
TogglePlayerControllable(i, 0);
SendClientMessage(i, COLOR_LIGHTRED, " Àíòè÷èò: Òû áûë êèêíóò çà ÷èòåðñòâî äåíåã");
GetPlayerName(i, plname, sizeof(plname));
new string[256];
new year, month,day;
new hackedmoney = GetPlayerMoney(i) - PlayerInfo[i][pCash];
format(string,sizeof(string)," Àíòè-Õàê: Èãðîê %s áûë êèêíóò. Ïðè÷èíà: ×èò íà äåíüãè ($%d)",plname,hackedmoney);
SendClientMessageToAll(COLOR_LIGHTRED,string);
getdate(year, month, day);
SavePlayer(i);
Kick(i);
// DengiTime[i] = 15;
// WTFMoneyCheck(i);
}
else if(GetPlayerMoney(i) < PlayerInfo[i][pCash])
{
DengiTime[i] = 15;
PlayerInfo[i][pCash] = GetPlayerMoney(i);
}
}
}
//ÊÎÍÅÖ ÀÍÒÈ-ÄÅÍÜÃÈ