Raised This Month: $ Target: $400
 0% 

Teammates money display


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 09-16-2019 , 17:41   Re: Teammates money display
Reply With Quote #28

Quote:
Originally Posted by jajaz View Post
L 09/17/2019 - 04:21:10: Start of error session.
L 09/17/2019 - 04:21:10: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20190917.log")
L 09/17/2019 - 04:21:10: Function "fnRoundStart" was not found
L 09/17/2019 - 04:21:10: [AMXX] Displaying debug trace (plugin "1.amxx", version "0.0.3")
L 09/17/2019 - 04:21:10: [AMXX] Run time error 19: function not found
L 09/17/2019 - 04:21:10: [AMXX] [0] 1.sma::plugin_init (line 1

how can i fix it?
PHP Code:
#include <amxmodx>
#include <cstrike>

#pragma semicolon 1

new g_pMoney;
new 
g_pFreezeTime;

new 
bool:g_bDisplay;

public 
plugin_init()
{
    
register_plugin("Team Money Display","0.0.3","SmileY");

    
g_pMoney     create_cvar("amx_display_money","1",FCVAR_NONE,"Display Teammate money");
    
g_pFreezeTime     get_cvar_pointer("mp_freezetime");

    
register_logevent("fnRoundStart",2,"1=Round_Start");
    
register_logevent("fnRoundEnd",2,"1=Round_End");
}

public 
fnRoundStart()
{
    
g_bDisplay false;
}

public 
fnRoundEnd()
{
    
g_bDisplay = (get_pcvar_num(g_pMoney) ? true false;
}

public 
CS_OnBuy(id,iWeapon)
{
    if(
g_bDisplay)
    {
        new 
szTeam[13];
        
get_user_team(id,szTeam,charsmax(szTeam));

        new 
iPlayers[MAX_PLAYERS],iNum,iPlayer;
        
get_players(iPlayers,iNum,"aeh",szTeam);

        new 
szName[MAX_NAME_LENGTH],szHud[512];

        for(new 
i;iNum;i++)
        {
            
iPlayer iPlayers[i];

            
get_user_name(iPlayer,szName,charsmax(szName));

            
format
            
(
                
szHud,
                
charsmax(szHud),
                
"%s%s $ %d^n",
                
szHud,
                
szName,
                
cs_get_user_money(iPlayer)
            );
        }

        new 
Float:fTime get_pcvar_float(g_pFreezeTime);

        if(
fTime 2.0)
        {
            
fTime 2.0;
        }

        
set_hudmessage(0,255,0,0.58,0.02,0,0.0,fTime,0.0,0.0,1);
        
show_hudmessage(id,(szTeam[0] == 'C') ? "Counter-Terrorist:" "Terrorists:");
    
        
set_hudmessage(255,255,225,0.58,0.05,0,0.0,fTime,0.0,0.0,2);
        
show_hudmessage(id,szHud);
    }

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 00:52.


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