Code:
#include <amxmodx>
#include <amxmisc>
new infmoney = 1
public plugin_init() {
register_plugin("Infinite Money","1.0","")
register_event("Money","money","b")
register_concmd("amx_money","cmdmoney",1,"1 = on 0 = off")
}
public cmdmoney(id){
new arg[2]
read_argv(1,arg,1)
set_hudmessage(255, 000, 128, -1.0, 0.25, 0, 1.0, 5.0, 0.1, 0.2, 2)
if(equal(arg,"1")){
infmoney = 1
set_user_money(id,16000,1)
show_hudmessage(0,"Admin has turned on infinite money.")
}else if (equal(arg,"0")){
infmoney = 0
show_hudmessage(0,"Admin has turned off infinite money.")
}
return PLUGIN_CONTINUE
}
public money(id){
if(infmoney==0)
return PLUGIN_HANDLED
set_user_money(id,16000,1)
return PLUGIN_CONTINUE
}
I don't know shit about programing for SMA or anything.
I found this on the forum, but it won't compile, I don't know how amx x works and how it sets money, so the set_user_money is fucked, be nice if someone would fix.