[Include] ServerSide.inc - (High Money Hack Protection)
#1

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.
Reply
#2

Use OnPlayerUpdate() function instead of timers,its better and avoids lag.

Btw,nice include +Rep
Reply
#3

Useless from my side, it can be done with just a hook, no need of timers or publics

Bad
Reply
#4

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<= GetMaxPlayers(); i++)
    {
        if (
IsPlayerConnected(i))
        {
            
ResetPlayerMoney(i);
            
GivePlayerMoney(iamount[i]);
        }
    }
    return 
1;

Other than that, it seems fine.
Reply
#5

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.
Reply
#6

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<= GetMaxPlayers(); i++)
    {
        if (
IsPlayerConnected(i))
        {
            
ResetPlayerMoney(i);
            
GivePlayerMoney(iamount[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
Reply
#7

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
Reply
#8

Well, this took me 4 minutes to make. Anyways good job.
Reply
#9

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
Reply
#10

As I said this is beta. The hooks will be made in the next updates.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)