Raised This Month: $23 Target: $400
 5% 

permanent hud message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Member
Join Date: May 2020
Old 06-28-2020 , 17:29   permanent hud message
Reply With Quote #1

Hey, since im noob in scripting and etc but i atleast try, i came to ask how should i make a hud show be shown permanent since the player connects 'till player disconnects and to be able to update it at the same time without showing it one on the other one, like on zombie plague mod. The mod code it's 11k lines and would take me a while to read all of it to can see how to do it so it s better to ask

Edit: i tried to use set_task but didn t work

Last edited by AnimalMonster; 06-28-2020 at 17:32.
AnimalMonster is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 06-28-2020 , 17:47   Re: permanent hud message
Reply With Quote #2

Code:
#include <amxmodx> #include <fun> #define TASK_PERM_HUD 1938647 public client_putinserver(id) {     if(!is_user_bot(id) || !is_user_hltv(id))     {         set_task(1.0, "HudTask", id+TASK_PERM_HUD, _, _, "b");     } } public client_disconnect(id) {     remove_task(id + TASK_PERM_HUD); } public HudTask(taskid) {     new id = taskid - TASK_PERM_HUD;     new iHealth = get_user_health(id);     set_hudmessage(255, 255, 255, -1.0, 0.4, 2, 6.0, 3.0, 0.1, 1.5);     show_hudmessage(id, "%i", iHealth); }
ZaX is offline
AnimalMonster
Member
Join Date: May 2020
Old 06-28-2020 , 17:55   Re: permanent hud message
Reply With Quote #3

I go test to be sure it works but i am sure it does, thanks in advance.
AnimalMonster is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:17.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode