06.03.2014, 22:55
pawn Код:
/* |=========================================| *\
| |
| Crayder's Cash |
| This script was made for all those |
| Server owner's who hate Money-Hackers! |
| |
| Thanks to me, SAMP team, and Y-Less |
| |
\* |=========================================| */
Crayder's Cash!
This script was made for all those server owners who are new to scripting and don't like Money-Hackers!I made this script on my free time some while ago, I have before then and after seen requests for server siding money... So I thought about configuring this mini script and releasing it.
Extra Information
You may enjoy the default "money" system, but I don't like resetting and giving cash when I need to! Sure, it does get the job done, but I felt the need to extend this matter, so I added a few function along with this script, just to help you guys out. (Below are the functions of the script.)pawn Код:
/* ========================================== *\
native SetPlayerCash(playerid, amount); -Sets their cash to the specified amount.
native TakePlayerCash(playerid, amount); -Takes the specified amount of cash from them.
native GivePlayerCash(playerid, amount); -Gives the specified amount of cash to them.
native ResetPlayerCash(playerid, amount); -Resets their cash.
native GetPlayerCash(playerid, amount); -Returns the amount of cash.
\* ========================================== */
Installation
1. Download the file provided below in the downloads section, and place it in your include folder (SERVER/PATH/pawno/includes/)2. Include it in your gamemode! (Add this line to the top of your script.)
Quote:
#include <c_cash> |
Quote:
#include <foreach> #include <c_cash> |
Quote:
SetTimer("Cash_Update", 25, true); |
4. Search and Replace ALL of the GetPlayerMoney, GivePlayerMoney and ResetPlayerMoney functions with GivePlayerCash and ResetPlayerCash. Using Pawno this is simple, just press Ctrl+H, in the "Search for:" field type GivePlayerMoney, and in the "Replace with:" field type GivePlayerCash. Do the same thing for ResetPlayerMoney and GetPlayerMoney.
5. If everything is done correctly, you should be done! You can now go try to hack your own server, or wait for hackers to come through. But REMEMBER: you can no longer use GivePlayerMoney or ResetPlayerMoney, GetPlayerMoney will still work actually, but GetPlayerCash is more efficient because it returns the players server sided variable! If you try using ResetPlayerMoney or GivePlayerMoney, the system will just change whatever you did back to what it is in the servers variables.
Downloads
Click here to download the include! (4Shared)Click here to view the include! (PasteBin)
Any problems?
Comment or PM me any thing you have trouble with, I'll do my best to help you!My request!
If this can be translated i'm sure other people will be delighted to use it when they can read it themselves, so if anyone can translate, go ahead and you will be +REPPED by me, just PM me the link to your translated version so I can post it here!