PHP Code:
#include <amxmodx>
#include <cstrike>
new Name[32]
new g_MsgSay
public plugin_init()
{
register_plugin("RoundStart Money", "1.2", "krm")
register_event("HLTV", "RoundStart_Money", "a", "1=0", "2=0")
g_MsgSay = get_user_msgid ( "SayText" )
}
public RoundStart_Money()
{
new iPlayers[32], iNum
get_players(iPlayers, iNum, "ch")
for(new i; i < iNum; i++)
{
get_user_name(iPlayers[i], Name, 31)
if(cs_get_user_team(iPlayers[i]) == CS_TEAM_CT)
{
print_colored(iPlayers[i], "!n(Counter-Terrorist)!t %s!n : $%i", Name, cs_get_user_money(iPlayers[i]))
}
if(cs_get_user_team(iPlayers[i]) == CS_TEAM_T)
{
print_colored(iPlayers[i], "!n(Terrorist)!t %s!n : $%i", Name, cs_get_user_money(iPlayers[i]))
}
}
}
stock print_colored ( const index, const input [ ], const any:... )
{
new players [ 32 ]
new count
new message [ 191 ]
new i
count = 1
vformat ( message, 190, input, 3 )
replace_all ( message, 190, "!n", "^1" )
replace_all ( message, 190, "!t", "^3" )
replace_all ( message, 190, "!g", "^4" )
if ( index )
{
players [ 0 ] = index
}
else
{
get_players ( players, count, "ch" )
}
for ( i = 0; i < count; i ++ )
{
if ( is_user_connected ( players [ i ] ) )
{
message_begin ( MSG_ONE_UNRELIABLE, g_MsgSay, _, players [ i ] )
write_byte ( players [ i ] )
write_string ( message )
message_end ( )
}
}
}
I need the money to show her entire team, but, is not working. Can anyone help me?
Thx
__________________