Jump to content
  • 0

AntiMoney Hack


Guest RinX

Question

Salut, am o MICA  :o problema... am configurat anitcheatul GM-ului meu. Dar 2 ''lucrusoare'' enervante.. cand playerul se conecteaza imi spune ca si`a spawnat bani... :|... iar alta vreau sa stiu exact cat si`a spawnat ... am incerct si cu GetPlayerMoney si cu ConsumingMoney sa fac in asa fel in cat sumele care nu apar in pay.log sa fie ca si spawn etc...  deci vreau sa rezolv aceste 2 probleme si am nevoie de ajutorul vostru ... Ms :D

Code :

	if(GetPlayerMoney(i) - CurrentMoney[i] >= 1 && PlayerInfo[i][pAdmin] < 1)
		    {
		        if(ConsumingMoney[i])
		        {
                    CurrentMoney[i] = GetPlayerMoney(i);
					ConsumingMoney[i] = 0;
		        }
		        else
		        {
			        GetPlayerName(i, plname, sizeof(plname));
                    GetPlayerMoney(i, plname, pmoney);
			        format(string, 256, "AntiCheat!: [%d]%s a spawnat [ o suma ] in mai putin de o secunda (moneycheat), foloseste /check .",i,plname);
					ABroadCast(COLOR_GREEN,string,1);
					PayLog(string);
			        CurrentMoney[i] = GetPlayerMoney(i);
		        }
		    }
Later Edit : Am gasit un Anti Momey Hack imi pare destul de bun .. vad ca nu arata banii spawnati din bonusurile pentru sarituri si altele :
//Union Anti Money Hack! (GodFather Compile) by chenza
//Support GM GodFather Only!!!

#if defined FILTERSCRIPT
#define GivePlayerMoney Union_GiveMoney
#define ResetPlayerMoney Union_ResetMoney
#define GetPlayerMoney Union_GetMoney

new ScriptMoney[MAX_PLAYERS];

forward CheckMoneyHack();
forward Union_GiveMoney(plyid, amounttogive);
forward Union_ResetMoney(plyid);
forward Union_GetMoney(plyid);

public OnGameModeInit()
{
	EnableStuntBonusForAll(0); // Disable Stunt Bonus
	SetTimer("CheckMoneyHack",5000,1);
	return 1;
}

public Union_GiveMoney(plyid, amounttogive)
{
	GivePlayerMoney(plyid, amounttogive);
	ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
	return 1;
}

public Union_ResetMoney(plyid)
{
	ResetPlayerMoney(plyid);
	ScriptMoney[plyid] = 0;
	return 1;
}

public Union_GetMoney(plyid)
{
	ScriptMoney[plyid];
	return 1;
}

public CheckMoneyHack() //Anti Money Hack By ChenZa!!
{
	for(new i = 0; i<MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			new string[256];
			new giveplayer[MAX_PLAYER_NAME];
			new money = GetPlayerMoney(i);
			new pcash = Union_GetMoney(i);
			if(pcash < money)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				new year, month,day;
				getdate(year, month, day);
				new moneynumber = money-pcash;
				format(string, sizeof(string), "AdmWarning : %s is use Money Cheat amount: %d", giveplayer, moneynumber);
				SendAdminMessage(0xFFFF00AA, string);
				Union_ResetMoney(i);
				Union_GiveMoney(i, pcash);
			}
			else
			{
				ScriptMoney[i] = money;
			}
		}
	}
  	return 1;
}

P.S acesta cand il introduc ca FS trebuie sa il dezactivez pe al meu (cel al Gm`ului) ?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Scuzati de double post dar macar raspundeti`mi la a 2-a intrebare cea cu acel moneycheat cum il pun .. il audaug ca FS aia stiu dar cel al Gm`ului il serg (/* */ ) ca ii fac :( ?

Link to comment
Share on other sites

  • 0

Alea cu #define le pui la inceputul scriptului.

Cu forward, sub #define,

new sub forward,

OnGameModeInit la OnGameModeInit (in filterscript ii OnFilterScriptInit...)

Cele cu public, in afara de public OnGameModeInit, la pui chiar la sfarsitul scriptului.

Da. Trebuie sa il adaugi ca comment /* */ in gamemode daca il folosesti ca filterscript.

Unde incepe codul scrii /*, iar la sfarsit, */.

Link to comment
Share on other sites

  • 0

LowRyder:

//Union Anti Money Hack! (GodFather Compile) by chenza
//Support GM GodFather Only!!!

#if defined FILTERSCRIPT
#define GivePlayerMoney Union_GiveMoney
#define ResetPlayerMoney Union_ResetMoney
#define GetPlayerMoney Union_GetMoney

new ScriptMoney[MAX_PLAYERS];

forward CheckMoneyHack();
forward Union_GiveMoney(plyid, amounttogive);
forward Union_ResetMoney(plyid);
forward Union_GetMoney(plyid);

public OnGameModeInit() // 
{
	EnableStuntBonusForAll(0); // Disable Stunt Bonus
	SetTimer("CheckMoneyHack",5000,1);
	return 1;
}

public Union_GiveMoney(plyid, amounttogive)
{
	GivePlayerMoney(plyid, amounttogive);
	ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
	return 1;
}

public Union_ResetMoney(plyid)
{
	ResetPlayerMoney(plyid);
	ScriptMoney[plyid] = 0;
	return 1;
}

public Union_GetMoney(plyid)
{
	ScriptMoney[plyid];
	return 1;
}

public CheckMoneyHack() //Anti Money Hack By ChenZa!!
{
	for(new i = 0; i<MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			new string[256];
			new giveplayer[MAX_PLAYER_NAME];
			new money = GetPlayerMoney(i);
			new pcash = Union_GetMoney(i);
			if(pcash < money)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				new year, month,day;
				getdate(year, month, day);
				new moneynumber = money-pcash;
				format(string, sizeof(string), "AdmWarning : %s is use Money Cheat amount: %d", giveplayer, moneynumber);
				SendAdminMessage(0xFFFF00AA, string);
				Union_ResetMoney(i);
				Union_GiveMoney(i, pcash);
			}
			else
			{
				ScriptMoney[i] = money;
			}
		}
	}
  	return 1;
}
Asa ? EDIT: Pacat. Am crezut ca sti. (The Corect Version):
//Union Anti Money Hack! (GodFather Compile) by chenza
//Support GM GodFather Only!!!

#if defined FILTERSCRIPT
#define GivePlayerMoney Union_GiveMoney
#define ResetPlayerMoney Union_ResetMoney
#define GetPlayerMoney Union_GetMoney

new ScriptMoney[MAX_PLAYERS];

forward CheckMoneyHack();
forward Union_GiveMoney(plyid, amounttogive);
forward Union_ResetMoney(plyid);
forward Union_GetMoney(plyid);

public OnFilterScriptInit() // 
{
	EnableStuntBonusForAll(0); // Disable Stunt Bonus
	SetTimer("CheckMoneyHack",5000,1);
	return 1;
}

public Union_GiveMoney(plyid, amounttogive)
{
	GivePlayerMoney(plyid, amounttogive);
	ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
	return 1;
}

public Union_ResetMoney(plyid)
{
	ResetPlayerMoney(plyid);
	ScriptMoney[plyid] = 0;
	return 1;
}

public Union_GetMoney(plyid)
{
	ScriptMoney[plyid];
	return 1;
}

public CheckMoneyHack() //Anti Money Hack By ChenZa!!
{
	for(new i = 0; i<MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			new string[256];
			new giveplayer[MAX_PLAYER_NAME];
			new money = GetPlayerMoney(i);
			new pcash = Union_GetMoney(i);
			if(pcash < money)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				new year, month,day;
				getdate(year, month, day);
				new moneynumber = money-pcash;
				format(string, sizeof(string), "AdmWarning : %s is use Money Cheat amount: %d", giveplayer, moneynumber);
				SendAdminMessage(0xFFFF00AA, string);
				Union_ResetMoney(i);
				Union_GiveMoney(i, pcash);
			}
			else
			{
				ScriptMoney[i] = money;
			}
		}
	}
  	return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.