SA-MP Forums Archive
[FilterScript] [FS][Tutorial] ServerSide Money Explained - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS][Tutorial] ServerSide Money Explained (/showthread.php?tid=127528)



[FS][Tutorial] ServerSide Money Explained - viKKmaN - 13.02.2010

I've seen alot of users posting all kinds of server-side money includes and filterscripts without explaining the process.
This is a simple filterscript demonstrating what server-side money are. It is easy enough for any "scripter" to understand.

Download: pwn + amx / pastebin


Re: [FS][Tutorial] ServerSide Money Explained - Monkey Stunter - 14.02.2010

Nice try


Re: [FS][Tutorial] ServerSide Money Explained - _[HuN]_Epsilon_ - 14.02.2010

Did you ever mind about the stunt bonuses?


Re: [FS][Tutorial] ServerSide Money Explained - viKKmaN - 14.02.2010

Quote:
Originally Posted by [HUN
Epsilon ]
Did you ever mind about the stunt bonuses?
Well this is just a tutorial explaining how the server money work.
I recomend disabling stunt bonuses when using server money + why do you need to give the player money for those?
I mean he can spam wheelie on a highway for hours and get ALOT of cash when doing a wheelie is easy.
And for fastfoods & amunation, all you gotta is change the Update function to this:
Code:
public Update()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerMoney[i] > GetPlayerMoney(i))
            {
                PlayerMoney[i] = GetPlayerMoney(i);
            }
            ResetPlayerMoney(i);
            GivePlayerMoney(i, PlayerMoney[i]);
        }
    }
}



Re: [FS][Tutorial] ServerSide Money Explained - Platanito - 16.02.2010

Well this doesnt work form me i Downloaded the AMX and PWN files
i placed them in the filterscript then i went to server.cfg and added SS Money on filterscript but when i run the server it doesnt load the filterscrip cause of a space in the name "SS Money" so i just changed the name to "SSMoney" and it loaded succesfully in my RP server but when i got and try to hack mony the money doesnt even reset... i keep spawning with a hack so cayou ll m whats wrong?


Re: [FS][Tutorial] ServerSide Money Explained - viKKmaN - 16.02.2010

This is a filterscript explaining how the server money work.
Of course it doesn't work since you use client money in your mode, meaning they conflict and disable each other.
To make this work you must implement it in your gamemode code. It's just the basic explanation.


Re: [FS][Tutorial] ServerSide Money Explained - skaTim - 16.02.2010

Great tutorial man