08.09.2009, 00:47
(
Последний раз редактировалось dugi; 20.08.2011 в 13:47.
)
Server-sided Money - Stop money hackers! v6 RELEASED
It's been a while since this script is around and I decided to update it, fixing many bugs and making the code cleaner/faster. It is now that I bring you Server-sided Money V6!
This script will make your server use server-sided money. Confused? This script actually works by saving a player's money into his own playermoney variable. Money is only modified when GivePlayerMoney or ResetPlayerMoney is called, so any other money being added will result in nothing.
How to use it?
v6.0:
Major bugfixes
Speed improvement
Added compatibility with vending machines, ammu-nations, fast-food shops, etc. Casinos are still not compatible.
Known issues
The script is not compatible with Stunt Bonuses! Be careful when you allow players into the casino. If they loose, their money won't be affected but if they win, the callback OnPlayerHaveExtraMoney will be called! So you should find a way to disable them/warn your players.
*NOTE: Don't forget to add the includes into your pawno/include folder! (foreach and YSI aswell!)
Download:
.ZIP FILE: http://solidfiles.com/d/cbe3b/
CREDITS TO: ******, for y_hooks & foreach
PLEASE REPORT IF YOU HAVE BUGS! Thanks
It's been a while since this script is around and I decided to update it, fixing many bugs and making the code cleaner/faster. It is now that I bring you Server-sided Money V6!
This script will make your server use server-sided money. Confused? This script actually works by saving a player's money into his own playermoney variable. Money is only modified when GivePlayerMoney or ResetPlayerMoney is called, so any other money being added will result in nothing.
How to use it?
Quote:
Use: Add #include <servermoneyGM> right under #include <a_samp> in your gamemode. For all the filterscripts you use, add #include <servermoneyFS> to them, right below #include <a_samp> as usual. You'll have to add public OnPlayerHaveExtraCash(playerid,extramoney) to your gamemode with all the other callbacks. This callback will get called WHENEVER a certain player acquires at least $100 of hacked money, so, for example a player entering a taxi will not get suspected (as I think entering a taxi gives a player $10-$20). |
Major bugfixes
Speed improvement
Added compatibility with vending machines, ammu-nations, fast-food shops, etc. Casinos are still not compatible.
Known issues
The script is not compatible with Stunt Bonuses! Be careful when you allow players into the casino. If they loose, their money won't be affected but if they win, the callback OnPlayerHaveExtraMoney will be called! So you should find a way to disable them/warn your players.
*NOTE: Don't forget to add the includes into your pawno/include folder! (foreach and YSI aswell!)
Download:
.ZIP FILE: http://solidfiles.com/d/cbe3b/
CREDITS TO: ******, for y_hooks & foreach
PLEASE REPORT IF YOU HAVE BUGS! Thanks