I'm not too sure I fully understand this line of code, but im going to give it a shot...
I'm working with the seemingly abandoned plugin server_rules (
http://forums.alliedmods.net/showthread.php?t=7703) and attempting to modify it to fit my needs...as well as to get a greater understand of how the text display system works.
And herein I am stuck. I am understanding that the first three numbers in this line of code:
Code:
set_hudmessage(255, 0, 0, -1.0, 0.01)
Are for the actual color of the hudmessage (rrr,ggg,bbb respectively). However, im not too sure how the final two numbers work. Any explination on that? I understand that the snippet I just put up is for red, left centered, but I dont quite understand how the coordinates work for the text (which I assume are the final two numbers).
I know that this line puts the text in the upper left hand corner. I want to bring the text down so that if a player joins the black bar from the spectator menu isnt blocking off the first 4-5 rules.
Code:
set_hudmessage( DISPLAYCOLOR[0], DISPLAYCOLOR[1], DISPLAYCOLOR[2], 0.05, 0.05, 2, 0.01, nDisplayTime, 0.01, 0.1, 4 )
But then I see lines like this on a similar plugin...and my brain doesnt comprehend.
Code:
set_hudmessage ( 200, 150, 0, 0.02, 0.25, 2, 0.1, get_cvar_float("rules_hudmessage_time"), 0.05, 1.0, 1)
I know that the hudmessage coordinates for this code display it in somewhat of the center of the screen.
Edit:
Well shit, im a moron...I didnt realize that there is a message text generator in the studio...
I feel like a total dumbass.