AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Servername in HUD (https://forums.alliedmods.net/showthread.php?t=46556)

zukku 10-28-2006 20:44

Servername in HUD
 
This is for TSRP.
I am running a TSRP server and i would like to add my servername in the HUD. But i dont really know how?
It should be like this:

My server
Wallet $0
Account $0
Salary $0
Job: Unemployed
Payday 20 min.

and so on.
I am running Harbu's RP plugin.
It would be great if somebody could help me out. Thanks.

Silencer123 10-29-2006 04:38

Re: Servername in HUD
 
Looks like you are going for registering a forward and then doing something like this:

Code:
public status_hud_message(message[180]) {     new hostname[64]     get_cvar_string("hostname",hostname,63)     format(message,179,"Server: %s^n%s",hostname,message)     return FMRES_SUPERCEDE // Not sure about the return type }
Note that I do not know TSRP and I am not sure if I understand you correct.

zukku 10-29-2006 07:09

Re: Servername in HUD
 
I will try it. Thanks.

zukku 10-29-2006 14:39

Re: Servername in HUD
 
It dosent work. It just makes a hud message. What i am looking for is in a permanent HUD.

Hawk552 10-29-2006 14:41

Re: Servername in HUD
 
There's a cvar, rp_hud_title or something like that.

Drak 10-29-2006 21:54

Re: Servername in HUD
 
Quote:

Originally Posted by Hawk552 (Post 396856)
There's a cvar, rp_hud_title or something like that.

That's only if your using remos harburp plugins.

Just edit the function "activehud" in the plugin, and add your line.

zukku 10-30-2006 07:56

Re: Servername in HUD
 
Okay, thanks guys : )

sub 11-01-2006 20:19

Re: Servername in HUD
 
If yo ustill need help pm me your source for your alpha/beta

zukku 11-02-2006 10:29

Re: Servername in HUD
 
Thanks, but i got it to work. But thanks anyway. ;)


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

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