Question (rep++)
#1

I have include for AntiMoneyHack, but I Drift Points. The problem is when people do Drift points, does not give them money because the server has AntiMoneyHack. Can I do so not only detects Drift_Points.pwn, AntiMoneyHack.
Reply
#2

Make a stock to bypass AntiMoneyHack, for example, stock GivePlayerValidMoney(), then you'd do the rest from there.
Reply
#3

Include have fuction which is responsible for issuing money,Use her
Reply
#4

#include <AntiMoneyHack> is only my Gamemode.
in FS gone.

And on the other include, is there any ready made.
Reply
#5

up.....
Reply
#6

Show us some codes..how is the antimoneyhack?
You need to do like Jack.7331 said
Reply
#7

What are you trying to say? Speak clear.
Reply
#8

If you have an AntiMoneyHack.inc , you should put

pawn Код:
#include <AntiMoneyHack>
at the top of all your filterscripts that relate or require money. So that means put #include <AntiMoneyHack> at top of your Drift_Points.pwn filterscript right under the #include <a-samp>. That way, the AntiMoneyHack will bypass your Drift Points.
Reply
#9

I put #include <AntiMoneyHack> in my gamemode

Код:
#if defined FILTERSCRIPT
	#endinput
#endif

#if defined _moneyhax_included
	#endinput
#endif
#define _moneyhax_included

#define CHECK_TIME 30 // in seconds to check if money is equal to the saved one.

new PMoney[MAX_PLAYERS];

forward GetPlayerMonez(playerid);
forward ResetPlayerMonez(playerid);
forward GivePlayerMonez(playerid,money);
forward MoneyCheck();

public MoneyCheck()
{
	new money;
	#if defined _foreach_included
	foreach(Player,playerid)
	{
		money = GetPlayerMoney(playerid);
		if( money < PMoney[playerid] && money > -1 ) PMoney[playerid]=money;
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid,PMoney[playerid]);
	}
	#else
	for(new playerid;playerid<MAX_PLAYERS;playerid++) if(IsPlayerConnected(playerid))
	{
		money = GetPlayerMoney(playerid);
		if( money < PMoney[playerid] && money > -1 ) PMoney[playerid]=money;
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid,PMoney[playerid]);

	}
	#endif

	return 1;
}

public GivePlayerMonez(playerid, money)
{
	new rmoney = GetPlayerMoney(playerid);
	if( rmoney < PMoney[playerid] && rmoney > -1 ) PMoney[playerid]=rmoney;

	PMoney[playerid]+=money;
	ResetPlayerMoney(playerid);
	GivePlayerMoney(playerid,PMoney[playerid]);
	return 1;
}
public ResetPlayerMonez(playerid)
{
	ResetPlayerMoney(playerid);
	PMoney[playerid]=0;
	return 1;
}
public GetPlayerMonez(playerid) return PMoney[playerid];


#define GivePlayerMoney GivePlayerMonez
#define GetPlayerMoney GetPlayerMonez
#define ResetPlayerMoney ResetPlayerMonez




public OnGameModeInit()
{
	SetTimer("MoneyCheck",CHECK_TIME*1000,true);
	if (funcidx("moneyhax_OnGameModeInit") != -1)
	{
		return CallLocalFunction("moneyhax_OnGameModeInit", "");
	}
	return 1;
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#else
    #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit moneyhax_OnGameModeInit
forward moneyhax_OnGameModeInit();

public OnPlayerConnect(playerid)
{
	PMoney[playerid]=0;
	if (funcidx("moneyhax_OnPlayerConnect") != -1)
	{
		return CallLocalFunction("moneyhax_OnPlayerConnect", "i", playerid);
	}
	return 1;
}

#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect moneyhax_OnPlayerConnect
forward moneyhax_OnPlayerConnect(playerid);
Reply
#10

It's very simple. For example:

pawn Код:
#include <a-samp>
#include <AntiMoneyHack>

#define COLOR_RED .......
#define ......  .......
Unless you don't have a AntiMoneyHack.inc?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)