Участник
Пользователь
- Сообщения
- 278
- Реакции
- 137
Hello forum users,
I am making a plugin and I don't know which one I should use, which one will work faster.
I am making a plugin and I don't know which one I should use, which one will work faster.
Код:
set_task(0.1, "task_har", id, _, _, "b");
public task_har(const id)
{
static const text[] = "¤ HP: %d | ARMOR: %d";
static health, armor;
//amxmodx
health = get_user_health(id);
armor = get_user_armor(id);
//reapi
health = floatround(get_entvar(id, var_health));
armor = floatround(get_entvar(id, var_armorvalue));
set_dhudmessage(0, 255, 0, 0.01, 0.96, 0, 0.0, 0.1, 0.1, 0.1);
show_dhudmessage(id, text, health, armor);
}