Its a small bit of code from a plugin. Everything works fine, I just want to make the maximum ammount of money given to be 16,000.
When I added the code, you gave me, I started getting an error saying something about iPlayerMoney not being used...
PHP Code:
public money(id)
{
if(money_active[id] == 1)
{
new iMoneyToGive = min(16000 - iPlayerMoney, get_pcvar_num(amx_money_num))
cs_set_user_money(id, cs_get_user_money(id) + iMoneyToGive)
client_print(id, print_chat, "%L", LANG_PLAYER, "MONEY", iMoneyToGive)
}
}