How the heck do i add a line displaying the value of a cvar at the bottom of the hud message? or in betwen the [Hud Info] line and the player's names ?
I tried and tried and i always end up with the value displayed in the right of every player's name or worst with values from other hud message...
PHP Code:
get_data_index(id, Players)
for(new i; i < g_MyData[id][Members]; i++)
{
user = Players[i]
if(Count)
add(MyMsg, charsmax(MyMsg), "^n")
format(MyMsg, charsmax(MyMsg), "%s%s", strlen(MyMsg) ? MyMsg : "[Info HUD]^n", g_MyData[user][UserName])
Count++
}
set_hudmessage(255, 255, 255, 0.02, 0.20, 0, 6.0, 1.0);
show_hudmessage(id, MyMsg)