04.09.2010, 07:40
(
Last edited by ipsBruno; 12/11/2010 at 12:42 AM.
)
Introduction
It is an Anti-Money Hack very efficient and simple does not require great knowledge to put it
Using
OBS: It Version is Using Array
[b]In Final GameMode Add/b]:
pawn Code:
// OnGameModeInit -//
SetTimer("CheckGrana",1500,true);
//- Final GameMode -//
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;
}
The End