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.
  • Similar Content

    • By shane
      SA-MP Anticheat Include
      'Anticheatu' actioneaza impotriva urmatoarelor tipuri de cheaturi: Troll-Hack, Fly-Hack, Speed-Hack, Teleport-Hack, Jetpack, Fake-Kill, Invisible-Hack
      A fost conceput acum aproape 2 ani, dar a ramas lafel de eficient si in ziua de azi.
      Pentru a putea fi folosit, gamemode-ul vostru necesita libraria YSI, acesta foloseste y_hooks si y_timers.
      E simplu de implementat, doar introduceti fisieru in folderul in care va sunt situate include-urile (pawn/include de obicei), adaugati in functia 'SetPlayerPosEx', urmatoarea linie "serverTeleported(playerid);", si includeti fisierul in gamemode prin linia "#include <locatia_voastra/anticheat_EX>"
      Desigur, s-ar putea sa fie anumite diferente care sa impiedice integrarea in gamemode, asta in cazuri rare.. depinde de voi sa il folositi.
      Va trebui sa faceti o verificare, in cazul in care jucatorul e admin, sa nu primeasca kick. Nu am adaugat, pentru ca depinde de la gamemode, la gamemode. Aceasta verificare se adauga in functiile 'OnCheatDetect' si 'OnWarningExecute'. E chestie la care aveti nevoie de cunostinte basic..
      Posibil sa mai adaug cate o verificare, sa il mai modific, cand am dispozitia si timpul necesar.
      Download: https://bit.ly/3jG8X0q
      VirusTotal: https://bit.ly/3jEUm5q
    • By iulirpg
      Salut azi am facut un anti troll hack ce cred eu ca-i folositor. Mai multe detali aici.  
      Descarcare #1  https://www.mediafire.com/file/xog95wg4hm2r5ob/cheats.pwn/file
  • 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.