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