Raised This Month: $159 Target: $400
 39% 

AMX Infinite Money


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Kristaps08
Junior Member
Join Date: Jun 2010
Old 08-29-2012 , 07:37   AMX Infinite Money
Reply With Quote #1

Infinite Money

Description:

With this plugin you can give a player infinite money.


Admin Commands:

amx_infinitemoney <target> [0|1] - 0=OFF 1=ON


Cvars:

None


Required Modules:

fakemeta


Planning to add:

None yet


Known Bugs:


None


Credits:

Dot and Zaltoa for the original idea. https://forums.alliedmods.net/showthread.php?t=13646


Changelog:

Code:
- v1.0
* First release.

- v1.1
* Added support to give infinite money while the target is dead.
* Changed and cleaned up some code.

- v1.2
* Added description.
* Optimized the code a little bit.
* First public release.
Attached Files
File Type: sma Get Plugin or Get Source (amx_infinitemoney.sma - 854 views - 2.6 KB)

Last edited by Kristaps08; 08-29-2012 at 07:56.
Kristaps08 is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-29-2012 , 07:54   Re: AMX Infinite Money
Reply With Quote #2

FM_PlayerPreThink is really needed ?
guipatinador is offline
Kristaps08
Junior Member
Join Date: Jun 2010
Old 08-29-2012 , 07:58   Re: AMX Infinite Money
Reply With Quote #3

Well yea because i tested it with war3ft and when i buy something from shopmenu in war3ft then it doesnt reset money back to 999999$
Kristaps08 is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-29-2012 , 08:03   Re: AMX Infinite Money
Reply With Quote #4

Show me the code that don't work in war3ft.

Last edited by guipatinador; 08-29-2012 at 08:03.
guipatinador is offline
Kristaps08
Junior Member
Join Date: Jun 2010
Old 08-29-2012 , 08:15   Re: AMX Infinite Money
Reply With Quote #5

I just extracted the not working code.

Code:
#include <amxmodx>
#include <cstrike>

public plugin_init() {
    register_event("Money", "event_money", "b")
}

public event_money(id) {
    if(!g_has_infinitemoney[id]) return PLUGIN_HANDLED

    cs_set_user_money(id, 999999, 0)
    return PLUGIN_HANDLED
}
Edit: I forgot to say that it doesn't work on plugins who set money because money event doesnt count that as money removing

Last edited by Kristaps08; 08-29-2012 at 08:23.
Kristaps08 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-29-2012 , 08:40   Re: AMX Infinite Money
Reply With Quote #6

Ultra-poorly coded. Redundant (use this one instead). Unapproved.
__________________

Last edited by Arkshine; 08-29-2012 at 08:42.
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:44.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode