User
Pass
2FA
 
 

cerere modificare

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message951
x4fun

[Idolu Femeilor]



Status: Offline
(since 01-06-2020 13:49)
Joined: 02 Mar 2017
Posts: 63, Topics: 23
Location: Piatra Neamt

Reputation: 46.3

 
Post Posted: 27-06-2018, 22:17:33 | Translate post to: ... (Click for more languages)

salut doresc si eu ca pluginul urmator sa fie modiifact

pluginul de hud sa nu se mai miste sa apara si sa dispara cand iti bagi HP (normal trebuie sa se miste dar nu mereu doar cand iti bagi HP sau ap)

un ajutor va rog !

Quote:
#include <amxmodx>
#include <engine>
#include <dhudmessage>

enum UserStats
{
USER_HP = 0,
USER_AP
}

new bool:g_b_user_hp_hud_blink[33], g_i_user_cache_stats[33][UserStats]
public plugin_init() {
register_plugin("Real-Like HP/AP HUD", "2.4", "<VeCo>")

register_event("Health","Event_Health","b")
register_event("Battery","Event_Battery","b")

new ent = create_entity("info_target")
entity_set_string(ent,EV_SZ_classname,"env_hud")
entity_set_float(ent,EV_FL_nextthink,get_gametime() + 0.5)

register_think("env_hud","env_hud_think")
}

public Event_Health(id) g_i_user_cache_stats[id][USER_HP] = get_user_health(id)
public Event_Battery(id) g_i_user_cache_stats[id][USER_AP] = get_user_armor(id)

public env_hud_think(ent)
{
entity_set_float(ent,EV_FL_nextthink,get_gametime() + 0.5)

static i_players[32],i_num, id
get_players(i_players,i_num,"a")

static i_health,i_armor

for(--i_num ; i_num >= 0 ; i_num--)
{
id = i_players[i_num]

i_health = g_i_user_cache_stats[id][USER_HP]
i_armor = g_i_user_cache_stats[id][USER_AP]

set_dhudmessage(255, 255, 255, 0.01, 0.92, 0, 0.0, 0.5, 0.0, 0.0)
show_dhudmessage(id, "HP: AP:")

if(i_health > 30 || !g_b_user_hp_hud_blink[id])
{
g_b_user_hp_hud_blink[id] = true
set_dhudmessage(255, 170, 0, 0.01, 0.92, 0, 0.0, 0.5, 0.0, 0.0)
} else {
if(i_health <= 10) g_b_user_hp_hud_blink[id] = false
set_dhudmessage(255, 0, 0, 0.01, 0.92, 0, 0.0, 0.5, 0.0, 0.0)
}
show_dhudmessage(id, " %i",i_health)

if(i_armor > 30)
{
set_dhudmessage(255, 170, 0, 0.01, 0.92, 0, 0.0, 0.5, 0.0, 0.0)
} else {
set_dhudmessage(255, 0, 0, 0.01, 0.92, 0, 0.0, 0.5, 0.0, 0.0)
}
show_dhudmessage(id, " %i",i_armor)
}
}

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
x4fun

[Idolu Femeilor]



Status: Offline
(since 01-06-2020 13:49)
Joined: 02 Mar 2017
Posts: 63, Topics: 23
Location: Piatra Neamt

Reputation: 46.3

 
Post Posted: 28-06-2018, 12:49:48 | Translate post to: ... (Click for more languages)

un ajutor cineva???
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
x4fun

[Idolu Femeilor]



Status: Offline
(since 01-06-2020 13:49)
Joined: 02 Mar 2017
Posts: 63, Topics: 23
Location: Piatra Neamt

Reputation: 46.3

 
Post Posted: 29-06-2018, 06:50:41 | Translate post to: ... (Click for more languages)

nimeni ??
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
x4fun

[Idolu Femeilor]



Status: Offline
(since 01-06-2020 13:49)
Joined: 02 Mar 2017
Posts: 63, Topics: 23
Location: Piatra Neamt

Reputation: 46.3

 
Post Posted: 29-06-2018, 07:33:35 | Translate post to: ... (Click for more languages)

topic inchis am rezolvat

mersi de ajutor

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by InLoveCs, 29 June 2018 13:01



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 26-07-2025, 00:16:27
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password