PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
public plugin_init() {
register_plugin("Money","1.0","Reaper2331")
register_cvar("amx_money","1") //Starts The Plugin In The On Position
register_cvar("money_amount", "10000") //The Amount Of Money You Want The Client To Have
}
public client_PreThink(id) {
if (get_cvar_num("amx_money") !=0) {
new money = cs_get_user_money(id)
new moneyamount = get_cvar_num("money_amount")
if(money < moneyamount)
cs_set_user_money(id, moneyamount) //Gives Back The Money To The Client
}
new money = cs_get_user_money(id)
new adminmoney = 10000
if(money < adminmoney)
cs_set_user_money(id, adminmoney) //Gives Back The Money To The Admin
}
Modified amount reset to 10,000 for you. And shouldn't this have been in the Suggestions/Requests :S
Original from:
http://forums.alliedmods.net/showthr...Infinite+money