(HELP) AntiMoneyHack - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: (HELP) AntiMoneyHack (
/showthread.php?tid=312869)
(HELP) AntiMoneyHack -
dogy - 23.01.2012
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);
}
}
}
}
}
}
}
Re: (HELP) AntiMoneyHack -
Artix - 23.01.2012
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
Re: (HELP) AntiMoneyHack -
dogy - 23.01.2012
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..