Quote:
Originally Posted by ConnorMcLeod
Edited and should be fixed.
|
How do I get text that says money has been given to you or, if you've got 16,000, that your account is full.
PHP Code:
new MaxMoney = 16000;
new BonusMoney = get_cvar_num("amx_money_num");
new TotalMoney = cs_get_user_money(id) + BonusMoney;
if (TotalMoney >= MaxMoney)
cs_set_user_money(id, MaxMoney);
else
cs_set_user_money(id, TotalMoney);
client_print(id, print_chat, "%L", LANG_PLAYER, "MONEY", get_cvar_num("amx_money_num"));
if(MaxMoney)
{
client_print(id, print_chat, "%L", LANG_PLAYER, "MONEY_MAX", get_cvar_num("amx_money_num"));
}