(HELP) AntiMoneyHack
#1

Script that I use: LARP Ravens

I Have a problem with AntiMoneyHack.When somebody use MoneyHack the information came to me " NAme_Surname use a Money hack please /spec him..and if admins no online that persone can use money for buying someting.I won t when Somebody use MoneyHack the script automaticly reset his money or give ban.And I do not know how to do that.

Part Of Script:
Код:
if(AntiMoneyHack == 1)
			{
				if(PlayerGotSpottedRecently[i] == 0)
				{
			        if(!IsAtCandySprunk(i))
			        {
						if(GetPlayerMoney(i) != ScriptMoney[i])
						{
						    if(ScriptMoneyUpdated[i] == 0)
						    {
							    if(IsAtPaySpray(i) || IsAtTransfender(i))
							    {
							        SetRealMoney(i, GetPlayerMoney(i));
								}
								if((GetPlayerMoney(i) - ScriptMoney[i]) >= 500 && (GetPlayerMoney(i) - ScriptMoney[i]) != 0)
								{
								    if(admins == 0 || afkadmins == admins)
				        			{
			  							format(string, sizeof(string), "%s (%d), Has been kicked by Anticheat for Possible Money Hacking.", plname, i);
										SendClientMessageToAll(COLOR_NICERED, string);
										format(string, sizeof(string), "You have Been Kicked by The Anticheat For Possible Weapon Money Hacking ($%d)",(GetPlayerMoney(i) - ScriptMoney[i]));
										SendClientMessage(i,COLOR_LIGHTBLUE, string);
										format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Money Hacking ($%d)",d,m,y,h,mi,s,plname,(GetPlayerMoney(i) - ScriptMoney[i]));
										KickLog(string);
										format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kicked by the Anticheat - Money Hacking.",d,m,y,h,mi,s,plname);
										AddPunishment(i, string);
										Kick(i);
									}
								    format(string, sizeof(string), "[AC]: %s (%d) Is possibly Using Money Hacks; Use /spec and check him!", plname, i);
									SendAdminMessage(COLOR_YELLOW, string);
									PlayerSuspicious[i] = 1;
									PlayerMoneyHacking[i] = 1;
									PlayerSuspiciousMoney[i] = (GetPlayerMoney(i) - ScriptMoney[i]);
									PlayerGotSpottedRecently[i] = 1;
									SetTimerEx("ResetAcWarn", 300000, 0, "i", i);
								}
								else
								{
								    if((GetPlayerMoney(i) - ScriptMoney[i]) >= 1)
								    {
									    format(string, sizeof(string), "[AC]: %s (%d) Is Bugged on a Cash Inbalance, Check him inmediately!!", plname, i);
										SendAdminMessage(COLOR_YELLOW, string);
										PlayerSuspicious[i] = 1;
										PlayerOnCashInbalance[i] = 1;
										PlayerSuspiciousMoney[i] = (GetPlayerMoney(i) - ScriptMoney[i]);
										PlayerGotSpottedRecently[i] = 1;
										SetTimerEx("ResetAcWarn", 90000, 0, "i", i);
									}
								}
							}
						}
					}
				}
			}
Reply
#2

add this on your code

Код:
ResePlayerMoney(playerid);
GivePlayerMoney(playerid," Your directory of saving system "
or do entire system

or use this

add
Код:
new ssmoney[MAX_PLAYERS];
Код:
SetTimer("Money",1000,true); // use 1 seconds
then do the stocks

Код:
stock Smoney(playerid,cash)
{
   ssmoney = cash;
   RestePlayerMoney(playerid);
   GivePlayerMoney(playerid," Your directory of saving system "
}[/CODE]

then after that
add

Код:
forward AntiMoneyHack(playerid);
public AntiMoneyHaxk(playerid)
{
         // Lets add the stock   remember its like on your money or GivePlayerMoney
       Smoney(playerid, " Your directory of saving system ");
}
done

directory system is where you save your player money

+rep for me
Reply
#3

Always the same problem,Just inform me about someone use the hacks and spec him..
I try to fix that one month.Anyone try fix that for me please.Only AntimoneyHack.I will send links with my mods if somebody wonts tray...Only MoneyHacks..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)