AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   AMX Infinite Money (https://forums.alliedmods.net/showthread.php?t=194549)

Kristaps08 08-29-2012 06:37

AMX Infinite Money
 
1 Attachment(s)
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.


guipatinador 08-29-2012 06:54

Re: AMX Infinite Money
 
FM_PlayerPreThink is really needed ?

Kristaps08 08-29-2012 06:58

Re: AMX Infinite Money
 
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$

guipatinador 08-29-2012 07:03

Re: AMX Infinite Money
 
Show me the code that don't work in war3ft.

Kristaps08 08-29-2012 07:15

Re: AMX Infinite Money
 
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

Arkshine 08-29-2012 07:40

Re: AMX Infinite Money
 
Ultra-poorly coded. Redundant (use this one instead). Unapproved.


All times are GMT -4. The time now is 19:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.