AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Having Offsets constanly showed on the screen (https://forums.alliedmods.net/showthread.php?t=26596)

Stephen 04-05-2006 09:17

Having Offsets constanly showed on the screen
 
Hi.

Is it possible to have certain Offsets constanly shown at the screen ?

Greenberet 04-05-2006 09:54

yes,
read the offset each 0.X seconds (or pre-/postthink )
if it got changed print it on the screen

If i were you i would use log_amx or something like that, because you could get an message overflow

Stephen 04-05-2006 13:38

Can be closed

P34nut 04-05-2006 13:59

You only can set 4 hudmessages pr player

Quote:

Originally Posted by amxmodx funcwiki
There are 4 hud channels pr player

check

Stephen 04-05-2006 14:07

Ah ok Thx.

cause i tried and tried. etc...

Atleast i can set more then 1 info on 1 Lone.

^^

v3x 04-05-2006 14:54

Set the channel number to -1.

Stephen 04-05-2006 16:00

Is there a way to have more then 4 Hudmessage Lines ?

btw
set_hudmessage(200, 200, 0, 0.45, 0.03, 0, 6.0, 6.0, 0.5, 0.15, -1)
i have it like that

and how i can make the hud message constant ? without having it fadein and fadeout ?

v3x 04-05-2006 16:26

You cannot go over 4 channels.

You can make new lines by using ^n in your code.

Use set_task for your last question.

Stephen 04-05-2006 16:46

Code:
set_hudmessage(200, 200, 0, 0.55, 0.03, 0, 6.0, 6.0, 0.1, 0.1, -1)     show_hudmessage(id, "Base Powerlevel is: %d | Turbo: %d | Ki: %d",basepl,turbopl, ki)       set_hudmessage(200, 200, 0, 0.55, 0.05, 0, 6.0, 6.0, 0.1, 0.1, -1)     show_hudmessage(id, "Base Speed is: %d | Speed: %d | HP: %d | Frags: %d",basesp,turbosp,hp,frags)     set_hudmessage(200, 200, 0, 0.55, 0.07, 0, 6.0, 6.0, 0.1, 0.1, -1)     show_hudmessage(id, "Playerclass is: %d | Sequence: %d | Un: %d",player, anim)

could you show an snippet with that ^n ?

Zenith77 04-05-2006 16:50

Code:
 new string[] = "Zomg a string with the new line char ^n"


All times are GMT -4. The time now is 16:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.