Posts: 617
Threads: 129
Joined: Feb 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.
Posts: 344
Threads: 12
Joined: Sep 2010
Reputation:
0
Find the part which resets money and add following:
Ban(/*idoftheguy*/);
// I misunderstood your question, never mind.
Posts: 617
Threads: 129
Joined: Feb 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
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
When it's loading your stats, you're using GivePlayerMoney instead of the added function.
Posts: 101
Threads: 11
Joined: Jan 2013
Reputation:
0
Make sure your player's money variable is ontop of the GivePlayerMoney.
Posts: 617
Threads: 129
Joined: Feb 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[
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
I already told you, you're using GivePlayerMoney instead of your custom function.
Posts: 617
Threads: 129
Joined: Feb 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