Hi, the variables to show for the set_hudmessage are not filling or something. In game the hud message is showing where the variables should be with all 0's. I put all of this in a prethink and it worked fine but I don't want it there.
Code:
public plugin_init() {
set_task(0.49,"hudHP",0,"",0,"b");
}
public hudHP(id) {
new ping, loss;
new health = get_user_health(id);
new armor = get_user_armor(id);
new frags = get_user_frags(id);
new deaths = get_user_deaths(id);
get_user_ping(id, ping, loss);
set_hudmessage(255, 0, 0, -1.3, 1.3, 0, 0.0, 0.5, 0.0, 0.0, 4);
show_hudmessage(id, "Health: %d - Armor: %d ^n Frags: %d - Deaths: %d ^n Ping: %d - Loss: %d", health, armor, frags, deaths, ping, loss);
return PLUGIN_CONTINUE;
}