You want to get all the money? Put together? Will come with an edit.
Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "Get Money Test"
#define AUTHOR "Alucard"
#define VERSION "1.0"
new HudSync
new g_MaxPlayers
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(1.0, "ShowMoney", 0, "", 0, "b")
g_MaxPlayers = get_maxplayers()
HudSync = CreateHudSyncObj()
}
public ShowMoney()
{
new money, i
for(i = 1; i <= g_MaxPlayers; i++)
{
if(is_user_connected(i) )
money += cs_get_user_money(i)
}
set_hudmessage(255, 255, 255, 0.01, 0.15, 0, 1.0, 1.0, 0.1, 0.2, -1)
ShowSyncHudMsg(0, HudSync, "Money: %i", money)
}
__________________