//Displays the HUD to the user
public DisplayHUD(id)
{
if (!is_user_alive(id) || is_user_bot(id))
return;
new HUD[64]
if (!get_pcvar_num(g_badges_active))
{
format(HUD, 63, "[BF2]Zabicia: %d/%d Ranga: %s ",totalkills[id],nextrank[id],RANKS[g_PlayerRank[id]])
message_begin(MSG_ONE_UNRELIABLE, gmsgStatusText, {0,0,0}, id)
write_byte(0)
write_string(HUD)
message_end()
}
else
{
format(HUD, 63, "[BF2]Zabicia: %d/%d Odznaki: %d Ranga: %s ",totalkills[id],nextrank[id],numofbadges[id],RANKS[g_PlayerRank[id]])
message_begin(MSG_ONE_UNRELIABLE, gmsgStatusText, {0,0,0}, id)
write_byte(0)
write_string(HUD)
message_end()
}
już mam .
do zamknięcia ;d