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
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-17-2017 , 04:14   How can i return the whole team money value ?
Reply With Quote #1

I'm trying to make a stock to return the whole team money, idk why is not currentyl working ..

Idk what methot should i add, however here's the code:
PHP Code:
#include <amxmodx>
#include <cstrike>

new iTeMoney;

public 
plugin_init( )
{
    
register_clcmd"say /test""test" );
}


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(  )
{
    new 
tePlayers[32] , iteNum;    

    
get_playerstePlayers iteNum "e" "1" );

    for( new 
iteNum i++ )
    {
        
iTeMoney += cs_get_user_moneytePlayers] );
    }
    return 
iTeMoney;

__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
 


Thread Tools
Display Modes

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