AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   FLOAT: X ,Y & Z (https://forums.alliedmods.net/showthread.php?t=185450)

Waleed 05-17-2012 16:02

FLOAT: X ,Y & Z
 
Hey,There.

Float:x = -1.0
Float:y = 0.35 // Where would be these to X,Y components on screen.


What will be the value for a text to show on the crosshair in their X & Y components.
By the way what are the total valuse of X & Y,I mean from where x,y starts and end?

and What is:

effects = 0
Float:fxtime = 6.0
Float:Holdtime = 12.0
Channel = 4

There are mentioned in HUD-Message settings,What are they??

<VeCo> 05-17-2012 16:13

Re: FLOAT: X ,Y & Z
 
For setting the coordinates you can use the Hudmessage Generator in AMXX Studio. (values are: 0.0 to 1.0, -1.0 is centered; starting from top-left of the screen)

effects parameter specifies the hud message effect - 0 is fade in/out, 1 is blinking, 2 is effect of "writing" the message letter by letter

fxtime parameter is for the time/speed of those efects

holdtime is the time before the hudmessage disappears (in seconds)

channel specifies the hudmessage channel (values are: 1 to 4, -1 is auto) - this parameter specifies in which HUD channel the message will appear. There are 4 channels, that means there can be maximum 4 messages at the same time on the screen. If the specified channel is used by another hudmessage, then it will be removed to free space for that message. So it's better to use -1 to auto detect the free channel or use HudSync natives that will work perfectly without concern about HUD channels - it will detect them automatic and will prevent them from hiding from another HUD messages.

Waleed 05-17-2012 16:31

Re: FLOAT: X ,Y & Z
 
Thanks,I wanted to knew that.

Waleed 05-17-2012 16:49

Re: FLOAT: X ,Y & Z
 
In AMX Studio,Click Generator from Menu the HUD MESSAGE GENERATOR

amxxstudio/generators/hud message generator


All times are GMT -4. The time now is 00:27.

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