Daje kod:
public DisplayHUD(id)
{
id -= TASK_HUD;
if ( !get_pcvar_num(gPcvarBF2Active) || !get_pcvar_num(gPcvarStatusText) )
return;
if ( !is_user_alive(id) || is_user_bot(id) )
return;
if(!is_user_connected(id))
{
remove_task(id+TASK_HUD);
return;
}
set_hudmessage(255, 255, 0, 0.02, 0.23, 0, 6.0, 1.0);
if ( !gStatsLoaded[id] )
{
ShowSyncHudMsg(id, gHUD,"[%s] Wczytuje Dane...", gPluginName)
}
else
{
new rank = g_PlayerRank[id];
new nextrank;
switch(rank)
{
case 16, 19, 20, 21: nextrank = 15;
case 17: nextrank = 7;
case 18: nextrank = 8;
default: nextrank = rank;
}
++nextrank;
new nextrankxp = floatround(gRankXP[nextrank] * get_pcvar_float(gPcvarXpMultiplier));
if ( !get_pcvar_num(gPcvarBadgesActive) )
{
ShowSyncHudMsg(id, gHUD,"[Ranga: %s]^n[Zabicia: %d/%d]", gPluginName, gRankName[rank], totalkills[id], nextrankxp)
}
else
{
ShowSyncHudMsg(id, gHUD,"[Ranga: %s]^n[Ilosc Odznak: %d]^n[Zabicia: %d]^n[Zdrowie : %i]^n[VIP: %s]", gPluginName, gRankName[rank], numofbadges[id], totalkills[id], nextrankxp, get_user_health(id), get_user_flags(id) & ADMIN_LEVEL_H ? "Tak" : "Nie")
}
}
}


Dodatki SourceMod













