Raised This Month: $ Target: $400
 0% 

How can i return the whole team money value ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-17-2017 , 16:36   Re: How can i return the whole team money value ?
Reply With Quote #6

Or This..
PHP Code:
#include <amxmodx> 
#include <cstrike> 

#define IsValidPlayer(%1) ( 1 <= %1 <= g_maxplayers )

new g_maxplayers;

public 
plugin_init( ) 

    
register_clcmd"say /test""test" ); 
    
    
g_maxplayers get_maxplayers()


public 
testid 

    
client_printid print_chat "Tero team total money: %i, your money: %i"cs_temoney_team( ) , cs_get_user_moneyid ) ); 


stock cs_temoney_team(  ) 

    static 
iTeMoney
    
    for ( new 
i<= g_maxplayersi++ ) {
        
        if(
IsValidPlayer) && is_user_alive) && cs_get_user_team) == CS_TEAM_T) {
            
            
iTeMoney += cs_get_user_money);     
            
        }
    }
    return 
iTeMoney

__________________

Last edited by edon1337; 01-18-2017 at 11:14.
edon1337 is offline
 



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 21:01.


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