Raised This Month: $32 Target: $400
 8% 

Server Hud Logo


Post New Thread Reply   
 
Thread Tools Display Modes
Vicoshow
Junior Member
Join Date: Nov 2017
Location: France
Old 11-22-2017 , 17:58   Re: Server Hud Logo
Reply With Quote #121

Hi bro thanks for your work but how to insert picture inplace the text ?
__________________
Vicoshow is offline
Luigi123
Member
Join Date: Nov 2015
Location: Winnipeg, Manitoba, Cana
Old 12-13-2017 , 17:44   Re: Server Hud Logo
Reply With Quote #122

Hi, I want to make my server hud logo to be as left align. What number is it?

Last edited by Luigi123; 12-13-2017 at 20:56.
Luigi123 is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 01-14-2019 , 21:41   Re: Server Hud Logo
Reply With Quote #123

screenshots??????
axelnieves2012 is offline
GuStAvOS
Member
Join Date: Mar 2018
Old 01-17-2019 , 22:38   Re: Server Hud Logo
Reply With Quote #124

holassss :d

can you have it work for l4d2 please if ...
__________________
GuStAvOS is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-18-2019 , 17:28   Re: Server Hud Logo
Reply With Quote #125

Quote:
Originally Posted by GuStAvOS View Post
holassss :d

can you have it work for l4d2 please if ...
You can try this thread:
https://forums.alliedmods.net/showthread.php?p=2631418

For me it worked.
Just need to paste the .nut file on ..\left4dead2\scripts\vscripts

I created one with the following name "coop.nut"
and added this code inside:

PHP Code:
HUDTable <-
{
    
Fields 
    {
        
logo = { slot HUD_RIGHT_TOPdataval "YOUR SERVER"flags HUD_FLAG_ALIGN_LEFT HUD_FLAG_NOBGname "logo" }
    }
}

HUDSetLayout(HUDTable//Applies a HUD to the screen
//HUDPlace(HUD_FAR_RIGHT, 0.8 , 0.04 , 0.5 , 0.1) //Uncomment this line if you want to configure the text box: make it larger or change it on the screen 
g_ModeScript // Global reference to the Mode Script scope 
I just changed the slot because by default the text was truncating
Attached Files
File Type: zip logo_hud.zip (716 Bytes, 280 views)

Last edited by Marttt; 02-19-2019 at 04:58. Reason: attached file
Marttt is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 01-20-2019 , 18:24   Re: Server Hud Logo
Reply With Quote #126

I can't understand what do this plugin do. Can you attach any screenshot, please??
axelnieves2012 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-20-2019 , 19:13   Re: Server Hud Logo
Reply With Quote #127

It's gonna add some watermark on your HUD

Example:


The text you put in dataval = "YOUR SERVER" is what appear in the Red rectangle
Attached Images
File Type: jpg logo_hud_watermark.jpg (30.7 KB, 866 views)

Last edited by Marttt; 01-20-2019 at 19:14.
Marttt is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 03-20-2019 , 12:46   Re: Server Hud Logo
Reply With Quote #128

Hey, is it possible to make the text smaller? one of my users plays with a resolution of 1280x720

https://i.gyazo.com/848b1f766b7fabf1...dc2b8272f5.png

Last edited by freak.exe_uLow; 03-29-2019 at 13:14.
freak.exe_uLow is offline
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 06-29-2019 , 18:31   Re: Server Hud Logo
Reply With Quote #129

Quote:
Originally Posted by Marttt View Post
You can try this thread:
https://forums.alliedmods.net/showthread.php?p=2631418

For me it worked.
Just need to paste the .nut file on ..\left4dead2\scripts\vscripts

I created one with the following name "coop.nut"
and added this code inside:

PHP Code:
HUDTable <-
{
    
Fields 
    {
        
logo = { slot HUD_RIGHT_TOPdataval "YOUR SERVER"flags HUD_FLAG_ALIGN_LEFT HUD_FLAG_NOBGname "logo" }
    }
}

HUDSetLayout(HUDTable//Applies a HUD to the screen
//HUDPlace(HUD_FAR_RIGHT, 0.8 , 0.04 , 0.5 , 0.1) //Uncomment this line if you want to configure the text box: make it larger or change it on the screen 
g_ModeScript // Global reference to the Mode Script scope 
I just changed the slot because by default the text was truncating
not work for me
zaviier is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-30-2019 , 15:12   Re: Server Hud Logo
Reply With Quote #130

For me I need to do some hack, try to test it with a coop game.

Put the coop.nut file into "left4dead2/scripts/vscripts" folder, then open your game.

Locally for me it works most of the times, when I publish sometimes only takes the logo into the second map. I had to make a plugin that loads the vscript after the map started to "fix" that behavior.

But with the thread I linked for me it worked.
__________________
Marttt is offline
Reply



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 21:06.


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