Thread: get_user_money
View Single Post
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 04-14-2011 , 15:29   Re: get_user_money
Reply With Quote #7

I have this:

PHP Code:
#include <amxmodx>

#define PLUGIN "Aim Info Plugin"
#define VERSION "1.0"
#define AUTHOR "@bdul!+Sn!ff3r"

new g_status_sync

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("StatusValue""showStatus""be""1=2""2!0")
    
register_event("StatusValue""hideStatus""be""1=1""2=0")
    
register_dictionary("aim_info.txt");
    
    
g_status_sync CreateHudSyncObj()
}

public 
showStatus(id)
{
    if(!
is_user_bot(id) && is_user_connected(id)) 
    {
        new 
name[32], pid read_data(2)
    
        
get_user_name(pidname31)
        new 
color1 0color2 0
    
        
new team1 get_user_team(id), team2 get_user_team(pid)
    
        if (
team2 == 1)
            
color1 255
        
else
            
color2 255
                
        
if (team1 =! team2)    // friend
        
{
            
set_hudmessage(color150color2, -1.00.6010.013.00.010.01, -1)
            
ShowSyncHudMsg(idg_status_sync"%L"LANG_PLAYER"AIM_INFO"nameget_user_health(pid), get_user_armor(pid), get_user_weapon(pid), cs_get_user_money(pid))
        }
    }
}

public 
hideStatus(id)
{
    
ClearSyncHud(idg_status_sync)

But i canīt compile it. The compiler shows me that:

STr!ker is offline