Raised This Month: $ Target: $400
 0% 

Maximum amount of money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 04-15-2009 , 09:07   Re: Money
Reply With Quote #1

Quote:
Originally Posted by ConnorMcLeod View Post
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(idMaxMoney);
        else
                
cs_set_user_money(idTotalMoney);
            
client_print(idprint_chat"%L"LANG_PLAYER"MONEY"get_cvar_num("amx_money_num"));
        
        if(
MaxMoney)
        {
            
client_print(idprint_chat"%L"LANG_PLAYER"MONEY_MAX"get_cvar_num("amx_money_num"));
        } 

Last edited by Debesėlis; 04-15-2009 at 11:05.
Debesėlis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode