[Title]
CashMod = Name of the mod.
V0.0.7 = Version of the mod.
[Credits]
Me - Pretty much everything.
Various Plugins - Taking some code from some other plugins for help.
TandborsteN - For sending me the Laserbeam codes.
Various Players - For testing it.
[Description]
CashMod is a simple mod for Hide N Seek. This was a private project of mine, i was gonna use this mod on my server but that didnt happend so im releasing it here instead. This mod is like any other XP mods such as XPMod By Exolent and MoneyMod by LaineN. The different from xpmod is that this contains alot of new items such as laserbeam and no pain shock. CashMod also contains more items than MoneyMod, but MoneyMod is private.
[History]
I was creating a mod for my clan, half-way through the completion of v0.0.1 my computer broke, luckily i had made a backup copy of it on my USB stick. I couldnt get my hands on a new computer for another couple of weeks. Finally once i got a new computer 90% of the members of my clan had left. In the lack of fun i started working on newer versions of CashMod, i was testing and testing, coding and coding, after the completion of v0.0.3 i found a clan who really wanted CashMod so i sold it for around 40€. I told the clan leader (who i sold to) to not give CashMod to anyone. The clan leader found several bugs so i fixed them and sent them CashMod v0.0.4 for free. The clan leader, disregarding what i told him, passed CashMod to his friend. As a result, the currently most up to date CashMod at the time had leaked. It was never uploaded at alliedmods but it was passed from friend to friend and i would say atleast 50 people has v0.0.4. I was furious at the clan leader. I stopped playing CS for awhile and then i found another clan. This clan wanted my mod to. The different was that i could trust the clan leader because it was a very good friend, and today we share all our plugins with eachother(this is true , i think). Anyways, i decided to fix some bugs in v0.0.4 and developed v0.0.5, once v0.0.5 was finished the clan leader aka my friend had already installed his own mod , conveniently enough also called CashMod. Bugs were discovered in his mod and we decided to switch to my CashMod on one condition, that i fixed all bugs and added all items his CashMod had. So i did, and version v0.0.6 was brought to the world. Everything was fine, but one day i decided to leave the clan because everyone was nagging on me for some reason. The clan leader decided to shutdown the clan the very same day(i guess). Ever since, CashMod has not been used on any server. Today i decided to release it to the public because i realized that i had to much freetime and i could easily offer support for this mod.
[Commands - Administrators]
cm_givecash <nick, #userid, authid> <xp> //Give cash to someone
cm_removecash <nick, #userid, authid> //Remove cash from someone
[Commands - Everyone]
say /cm
say /cash
say /cashmod
say /hnsc
say /hnscash
[Plugin API]
There is an "API" included in CashMod for anyone who wants to use it.
This can be good for stuff like creating Cash Blocks and so on.
PHP Code:
#pragma reqlib "cashmod"
/* Sets the plugin prefix */
#define PREFIX "SF: Cash Mod"
/* Sets a player's cash.
* Param 1: Player ID
* Param 2: Amount of cash */
native cm_set_user_cash(iPlayer, iCash);
/* Gets a player's cash.
* Param 1: Player ID */
native cm_get_user_cash(iPlayer);
/* Get a players admin
* Param 1: Player ID */
native cm_get_user_admin(iPlayer);
/* Save a players items and cash
* Param 1: ID of the player to save */
native cm_save(iPlayer);
/* Loads a pleyers items and cash
* Param 1: ID of the player to load */
native cm_load(iPlayer);
/* If the its the players first time on server
* Returns 1 if its players first time
* Param 1: Player ID */
native cm_get_first_time(iPlayer);
/* Set if it is the players first time on server
* Param 1: Player ID
* Param 2: 1=first time */
native cm_set_first_time(iPlayer, FirstTime=1);
This is only a part of the file. A custom print stock is included.
The .INC file is NOT needed for re-compilation of CashMod, it is however required for compiling Round End Cash.
[Extras]
Post in this thread if you are getting any problems with this mod.
I will support this mod as long as people isnt complaining about it.
Feel free to give criticicm but please do not be to hard on me.
If there is anything i have forgot to write , tell me and ill do it.
I've added some extra sections to this thread, Compiling Locally contains tutorials that you should use if you dont know how to compile locally. Changelog will be the summary of every new version released. Developer Log will contain more speficic changes for each version stamped with a date.
[Compiling Locally]
Official Tutorial:
http://wiki.amxmodx.org/Compiling_Pl...28AMX_Mod_X%29
Inofficial Tutorial:
http://forums.alliedmods.net/showthread.php?t=130511
[Changelog]
Quote:
V0.0.7 - Bugfix #1 Released
V0.0.6 - Plugin Publicly Released
|
[Developer Log]
Quote:
(yyyy-mm-dd) - Added is_user_connected and is_user_alive check to certain parts of the main plugin.
|
Also, cm_roundend_cash.sma has to be compiled locally with cashmod.inc installed.