This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Statsx hud settings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XPERA
Member
Join Date: Nov 2022
Old 11-07-2023 , 05:06   Statsx hud settings
Reply With Quote #1

I cannot change the position of the HUD texts in this plugin. This task is very difficult for me. Can you help me?
Attached Files
File Type: sma Get Plugin or Get Source (statsx_shell.sma - 70 views - 120.3 KB)
XPERA is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 11-07-2023 , 05:38   Re: Statsx hud settings
Reply With Quote #2

If there is no settings file, then here in the code we need to change :

here it is as a guide :
set_hudmessage(iColor_R, iColor_G, iColor_B, iPos_X, iPos_Y, iEffect, 0.1, iHoldTime, iFadeIn, iFadeOut, -1)

iPos_X, iPos_Y, - these are respectively horizontal and vertical

https://prikachi.net/image/0ZVnq


And these are the ones we need to change :
Code:
// Set hudmessage format.
set_hudtype_killer(Float:fDuration)
	set_hudmessage(220, 80, 0, 0.05, 0.15, 0, 6.0, fDuration, (fDuration >= g_fHUDDuration) ? 1.0 : 10, 0.70, -1)

set_hudtype_endround(Float:fDuration)
{
	set_hudmessage(100, 200, 0, 0.05, 0.55, 0, 0.02, fDuration, (fDuration >= g_fHUDDuration) ? 1.0 : 10, 0.70)
}

set_hudtype_attacker(Float:fDuration)
	set_hudmessage(220, 80, 0, 0.55, 0.35, 0, 6.0, fDuration, (fDuration >= g_fHUDDuration) ? 1.0 : 10, 0.70, -1)

set_hudtype_victim(Float:fDuration)
	set_hudmessage(0, 80, 220, 0.55, 0.60, 0, 6.0, fDuration, (fDuration >= g_fHUDDuration) ? 1.0 : 10, 0.70 -1)

set_hudtype_specmode()
{
	set_hudmessage(255, 255, 255, 0.02, 0.96, 2, 0.05, 0.1, 0.01, 3.0, -1)
}
__________________

Last edited by Siska1; 11-07-2023 at 05:54.
Siska1 is offline
Send a message via Skype™ to Siska1
XPERA
Member
Join Date: Nov 2022
Old 11-07-2023 , 07:18   Re: Statsx hud settings
Reply With Quote #3

It hasn't happened yet, I want to put it under the radar so it looks nicer in terms of ambiance.
XPERA is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 11-07-2023 , 07:42   Re: Statsx hud settings
Reply With Quote #4

with amxxStudio you could make it easier by moving the message exactly where you want it to appear



then copy the generated code set_hudmessage into Statsx
__________________
mlibre is offline
XPERA
Member
Join Date: Nov 2022
Old 11-07-2023 , 08:41   Re: Statsx hud settings
Reply With Quote #5

This is what is seen in the explanation, but when you play with the settings, nothing changes. There is a cfg file, but there is no HUD setting.
Attached Thumbnails
Click image for larger version

Name:	image.jpg
Views:	26
Size:	29.2 KB
ID:	202123  
XPERA 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 18:53.


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