Quote:
Originally Posted by heroicpower7613
check this?? it sorts hud by most money
|
I did this, but ti doesn't sort instantly on the right position.
Code:
SortCustom1D( keycount, charsmax(keycount), "custom_compare" )
for( new i; i < MAX_MAPS+1; i++ )
{
formatex(szMaps, charsmax(szMaps), "%s. %s - %i %s^n",map_position[i], s_Maps[i], keycount[i],(keycount[i] > 1) ? "votes" : "vote");
add( buff, charsmax( buff ), szMaps )
}
if (f_TimeLeftBeforeDone >= 0 && (!g_voteIsDone))
formatex(szList, charsmax(szList), "Vote Results:^n%sTimeleft: %d", buff, floatround(f_TimeLeftBeforeDone));
else
{
formatex(szList, charsmax(szList), "Vote Results:^n%sTimeleft: 0", buff);
g_fLeft = get_gametime ();
}