Help with anti-money hack -
1fret - 15.08.2014
I followed a tutorial on how to make a anti-money hack but i have a problem when i connect to the server and its loading my stats (money) it banned me,but there is a anti money hack system that when the player try to hack money for example he/she has 5000 and try to hack 100000 it set back the player cash to the 5000, and dont banned them it just restore there old cash amount.
Re: Help with anti-money hack -
MicroD - 15.08.2014
Find the part which resets money and add following:
Ban(/*idoftheguy*/);
// I misunderstood your question, never mind.
Re: Help with anti-money hack -
]Rafaellos[ - 15.08.2014
This is called Server sided money. Check
THIS link and build your own, or download one.
Re: Help with anti-money hack -
1fret - 15.08.2014
Quote:
Originally Posted by ]Rafaellos[
This is called Server sided money. Check THIS link and build your own, or download one.
|
I tried to make one but it reset all the player cash to zero even when i use /setmoney command
Re: Help with anti-money hack -
Stinged - 15.08.2014
When it's loading your stats, you're using GivePlayerMoney instead of the added function.
Re: Help with anti-money hack -
Norrin - 16.08.2014
Make sure your player's money variable is ontop of the GivePlayerMoney.
Re: Help with anti-money hack -
]Rafaellos[ - 16.08.2014
Quote:
Originally Posted by 1fret
I tried to make one but it reset all the player cash to zero even when i use /setmoney command
|
This is what I am doing.
pawn Код:
stock GivePlayerMoneyEx(playerid, money)
{
return pInfo[playerid][Money] += money;
}
stock SetPlayerMoneyEx(playerid, money)
{
return pInfo[playerid][Money] = money;
}
stock GetPlayerMoneyEx(playerid)
{
return pInfo[playerid][Money];
}
//this is called every one second in a timer
if(GetPlayerMoneyEx(i) != GetPlayerMoney(i))
{
ResetPlayerMoney(i);
GivePlayerMoney(i, GetPlayerMoneyEx(i));
}
//and when I want to give money or something
GivePlayerMoneyEx(playerid, 1000);
//or set money
SetPlayerMoneyEx(playerid, 1500);
//or get money
GetPlayerMoneyEx(playerid);
Re: Help with anti-money hack -
1fret - 18.08.2014
this is the tutorial that i used could u just tell me what to change so it dont ban me when i used /setmoney command or when its loading my cash cause i dont fully understand what u saying ]Rafaellos[
Re: Help with anti-money hack -
Stinged - 18.08.2014
I already told you, you're using GivePlayerMoney instead of your custom function.
Re: Help with anti-money hack -
1fret - 18.08.2014
Quote:
Originally Posted by 1fret
this is the tutorial that i used could u just tell me what to change so it dont ban me when i used /setmoney command or when its loading my cash cause i dont fully understand what u saying ]Rafaellos[
|
this is the tutorial i followed
https://sampforum.blast.hk/showthread.php?tid=292898