Quote:
Originally Posted by dickbutt
Why is there a way to make Bank available to some people, But not the other way around? I want to either limit money or block certain steam id's from using it
|
PHP Code:
register_cvar("bank_default_opening","1000")
==>
PHP Code:
register_cvar("bank_default_opening","1000")
register_cvar("bank_limit","100000") //The amount limit bank account
PHP Code:
balance += curmoney
==>
PHP Code:
new banklimit = get_cvar_num("bank_limit")
if(balance >= banklimit)
{
client_print(id,print_chat,"You can not put the money in the bank! Bank exceeded the limit of !t%d!y$.", banklimit)
return PLUGIN_HANDLED
}
balance += curmoney
PHP Code:
balance += damount
==>
PHP Code:
new banklimit = get_cvar_num("bank_limit")
if(balance >= banklimit)
{
client_print(id,print_chat,"You can not put the money in the bank! Bank exceeded the limit of !t%d!y$.", banklimit)
return PLUGIN_HANDLED
}
balance += damount