AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Showing text (https://forums.alliedmods.net/showthread.php?t=57479)

kacperz1 07-05-2007 13:11

Showing text
 
I was wondering toooo if you could say to me with function shows text on screen? I mean i want to show a big colored text on center of screen and also a little colored one right-center aligned.

lagbeast 07-05-2007 13:23

Re: Showing text
 
I think you can find some help here maybe!

http://forums.alliedmods.net/showthr...highlight=csay

kacperz1 07-05-2007 13:35

Re: Showing text
 
There is wroten that you must download plugin to use that function. But i use web compiler.

Rolnaaba 07-05-2007 13:54

Re: Showing text
 
wtf do you mean? a HUD message?

kacperz1 07-05-2007 13:57

Re: Showing text
 
LOL I dont know. I mean a colored text on center on screen.
Whr can i download amxx compiler? Last time i used web compiler but its to match work to use it

Rolnaaba 07-05-2007 14:34

Re: Showing text
 
when you download and install amxx full. If you look in your scripting folder SURPRISE!! A compiler. for your message:
Code:
/**  * Sets format for hudmessage.  * Note - as of AMX Mod X 1.61, setting the channel to -1  *  will automatically choose the next available HUD channel for a player.  */ native set_hudmessage(red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4); /* Displays HUD message to given player. */ native show_hudmessage(index,const message[],{Float,Sql,Result,_}:...);

example usage:
Code:
set_hudmessage(0, 255, 0, -1.0, -1.0); show_hudmessage(id, "<Hudmessage>");
thats a VERY simple green hudmessage.

Rolnaaba 07-05-2007 14:35

Re: Showing text
 
note that example will print to the VERY center of the screen, which people dont like, so I would use the default values for the x,y coordinates


All times are GMT -4. The time now is 21:31.

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