PDA

View Full Version : [HELP] About Money Hack +Rep 1 !!!


VenomMancer
28/09/2013, 05:34 AM
Hello :)
Who Can, make or give to me the Anti-Money hack system ?
because i really need it.
my big problem on my server is Money Hack.
so please help me :)

Btw, i am using SATDM_v9 .

Thanks +Rep 1 !!

zrelly
28/09/2013, 05:38 AM
// OnGameModeInit -//

SetTimer("CheckGrana",1500,true);

//- Final GameMode -//

stock GivePlayerCash(playerid,Contia)
{
GivePlayerMoney(playerid,Contia);
SetPVarInt(playerid,"grana",Contia);
SetPVarInt(playerid,"AntiMH",10);
return true;
}

forward CheckGrana();
public CheckGrana()
{
for(new i = 0;i < MAX_PLAYERS;i++)
{
if(GetPVarInt(i,"AntiMH") == 10)
{
SetPVarInt(i ,"AntiMH",0);
return 0;
}
if(GetPlayerMoney(i) < GetPVarInt(i,"grana"))
{
SetPVarInt(i,"grana",GetPlayerMoney(i));
}
if(GetPlayerMoney(i) > GetPVarInt(i,"grana"))
{
ResetPlayerMoney(i);
GivePlayerMoney(i,GetPVarInt(i,"grana"));
}
}
return true;
}

Try this?

SAMProductions
28/09/2013, 07:28 AM
Try This One (Doesn't Tested Yet, Try it Yourself),

new AntiBadCash=GetPlayerMoney(playerid);
if(AntiBadCash>=/*Maximum Money, Example: ("10000001")*/) return ResetPlayerMoney(playerid);

HolyScripter
16/10/2013, 04:05 PM
You need to convert all GivePlayerMoney to GivePlayerCash first thing you must to do
is Create new stock , not only giveplayercash you can change it to all what you want like
BeriPlayerUang or GivePlayerDollars like what you want


stock GivePlayerCash(playerid, money)
{
SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money);
GivePlayerMoney(playerid, money);
return 1;
}

After this you must convert all GivePlayerMoney to GivePlayerCash , You can use replace for it

SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money); << This for your variable , if your variable is money or dollar change "Cash" to Money or Dollar , Sorry for my bad english CMIIW

if you want fast replace

find GivePlayerMoney(playerid,
replace with GivePlayerCash(playerid, after it apply to all script what you got, sorry for my bad english iam indonesian :)

Blademaster680
17/10/2013, 09:18 AM
Try and use server sided money. Really hard to hack because most hacks hack the client sided money not the server sided. Or you can take a look at this anti cheat plugin http://forum.sa-mp.com/showthread.php?t=268052&highlight=Server+sided+money

VenomMancer
18/10/2013, 04:28 PM
Try and use server sided money. Really hard to hack because most hacks hack the client sided money not the server sided. Or you can take a look at this anti cheat plugin http://forum.sa-mp.com/showthread.php?t=268052&highlight=Server+sided+money

I alredy used it :D

Thanks all for your help :)