ServerSide.inc - (High Money Hack Protection) -
illuminati2 - 18.02.2016
ServerSide.inc (STABLE)
(Say Good Bye To Money Hackers!)
Greetings, this is a new ServerSide Money include. This include will highly protect your server against money hacking. There are some cool functions in this include which will help you using this system by the easiest way. So from now, say Good Bye to all money hackers!
All you need to make it works is to put this at the top of your game mode
PHP код:
#include <ServerSide>
How It Works
UPDATE 2: Now the script uses everything as default, just a additional Function has been added. This script is suitable for any gamemode, saving system, anything. The thing it does is it hooks the default functions to add some things to avoid any money hacking. So, it will be very simple to use.
How To Install
1. Copy the code and paste it on your notepad program.
2. Save this code as ServerSide.inc
3. Put ServerSide.inc to your pawno>include folder.
4. put #include <ServerSide> at the top of your game mode.
5. Now you can use the include!
Functions
Код:
SetPlayerCash(playerid, Amount);
Pastebin Link
http://pastebin.com/iQ4Tdzby
Enjoy.
Re: ServerSide.inc - (High Money Hack Protection) -
K0P - 18.02.2016
Use OnPlayerUpdate() function instead of timers,its better and avoids lag.
Btw,nice include +Rep
Re: ServerSide.inc - (High Money Hack Protection) -
SecretBoss - 18.02.2016
Useless from my side, it can be done with just a hook, no need of timers or publics
Bad
Re: ServerSide.inc - (High Money Hack Protection) -
AmigaBlizzard - 18.02.2016
The function "ReducePlayerCash" seems totally useless, as you can use "GivePlayerCash" with a negative amount instead.
PHP код:
// Somewhere in the script
GivePlayerCash(playerid, -1000);
// Or
new amount = 1000;
GivePlayerCash(playerid, -amount);
Why the extra "if" inside the timer? Just update it always (but you should use IsPlayerConnected though)
PHP код:
public MoneyToCash()
{
for(new i; i <= GetMaxPlayers(); i++)
{
if (IsPlayerConnected(i))
{
ResetPlayerMoney(i);
GivePlayerMoney(i, amount[i]);
}
}
return 1;
}
Other than that, it seems fine.
Re: ServerSide.inc - (High Money Hack Protection) -
Pottus - 18.02.2016
Quote:
Originally Posted by SecretBoss
Useless from my side, it can be done with just a hook, no need of timers or publics
Bad
|
The timer has a purpose to set the cash correctly in the event a player uses a sprunk or cheats cash.
Re: ServerSide.inc - (High Money Hack Protection) -
illuminati2 - 18.02.2016
Quote:
Originally Posted by Ralfie
You are not updating the player's cash in any function which makes it a useless include.
EDIT: I just realized that you're updating it using the timer, which takes time to update. Pretty much odd.
|
It takes 1 second to update which is faster than on player update. And updating money every second will avoid any money hacks.
Quote:
Originally Posted by K0P
Use OnPlayerUpdate() function instead of timers,its better and avoids lag.
Btw,nice include +Rep
|
Thanks

on player update gets called many times a second but a timer is called just every second
Quote:
Originally Posted by SecretBoss
Useless from my side, it can be done with just a hook, no need of timers or publics
Bad
|
Thanks, timer is only used to set the default cash to the server sided cash.
Quote:
Originally Posted by AmigaBlizzard
The function "ReducePlayerCash" seems totally useless, as you can use "GivePlayerCash" with a negative amount instead.
PHP код:
// Somewhere in the script
GivePlayerCash(playerid, -1000);
// Or
new amount = 1000;
GivePlayerCash(playerid, -amount);
Why the extra "if" inside the timer? Just update it always (but you should use IsPlayerConnected though)
PHP код:
public MoneyToCash()
{
for(new i; i <= GetMaxPlayers(); i++)
{
if (IsPlayerConnected(i))
{
ResetPlayerMoney(i);
GivePlayerMoney(i, amount[i]);
}
}
return 1;
}
Other than that, it seems fine.
|
Thanks

I will keep updating it.
Quote:
Originally Posted by Pottus
The timer has a purpose to set the cash correctly in the event a player uses a sprunk or cheats cash.
|
Yes you're right
This script is still beta, more updates will be made soon
Re: ServerSide.inc - (High Money Hack Protection) -
SecretBoss - 19.02.2016
Quote:
Originally Posted by Pottus
The timer has a purpose to set the cash correctly in the event a player uses a sprunk or cheats cash.
|
Still he can hook GivePlayerMoney function to set the money to server side's value there is no need of a timer
Re: ServerSide.inc - (High Money Hack Protection) -
iKarim - 19.02.2016
Well,
this took me 4 minutes to make. Anyways good job.
Re: ServerSide.inc - (High Money Hack Protection) -
SecretBoss - 19.02.2016
Quote:
Originally Posted by PawnHunter
Well, this took me 4 minutes to make. Anyways good job.
|
You forgot to add SSC_ResetPlayerMoney function
Btw Illuminati, I don't like your name
Re: ServerSide.inc - (High Money Hack Protection) -
illuminati2 - 19.02.2016
As I said this is beta. The hooks will be made in the next updates.