21.05.2014, 15:40
Hello can to help mee with this anti money hack ?
And when i login on my server he didn't give mee money he give mee 0 money + when i add he get mee again my money.
I get this anti money hack from Internet Network
PHP код:
SetTimer("CheckGrana",1500,true);
PHP код:
stock GivePlayerCash(playerid,Contia)
{
GivePlayerMoney(playerid,Contia);
SetPVarInt(playerid,"grana",Contia);
SetPVarInt(playerid,"AntiMH",10);
return true;
}
forward CheckGrana();
public CheckGrana()
{
for(new i = 0;i < MAX_PLAYERS;i++)
{
if(GetPVarInt(i,"AntiMH") == 10)
{
SetPVarInt(i ,"AntiMH",0);
return 0;
}
if(GetPlayerMoney(i) < GetPVarInt(i,"grana"))
{
SetPVarInt(i,"grana",GetPlayerMoney(i));
}
if(GetPlayerMoney(i) > GetPVarInt(i,"grana"))
{
ResetPlayerMoney(i);
GivePlayerMoney(i,GetPVarInt(i,"grana"));
}
}
return true;
}
I get this anti money hack from Internet Network