View Single Post
Kristaps08
Junior Member
Join Date: Jun 2010
Old 08-29-2012 , 07: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 07:23.
Kristaps08 is offline