AlliedModders

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

Salamon 01-02-2008 08:54

set_hudmessage
 
i need help to modify the place of hud messages

suppose that we have a message (no matter what is the message)

i need to modify it that so the place of it will be random in 3-4 places on screen (random choose)

like set_hudmessage (255, 255, 255, placex, placey, ........)

i need some script to make something like this: for placex write some command like place
and i add something like this? new place = ...

and i need script to place there, command to choose position from 4 positions like 0.1, 0.3, 0.5, and 0.7 and hud message will be high, or randomly lower or something like this

Sn!ff3r 01-02-2008 09:03

Re: set_hudmessage
 
Use AMXX Studio - it have simple hudmessage generator.

Salamon 01-02-2008 09:08

Re: set_hudmessage
 
(nie wiem czy tam jest cos takiego zeby mozna bylo ustawic losowo pozycje tej wiadomosci losowo wybierana z jakiejs listy ktora nie umiem ustawic ale zobacze xD)

i dont know if this studio have option to set hudmessage randomly in different places from list with this informations about position but i will see xd

fxfighter 01-02-2008 09:13

Re: set_hudmessage
 
Code:


new Float:x[4]=
{
0.1,
0.2,
0.3,
0.4
}
new Float:y[4]=
{
0.1,
0.2,
0.3,
0.4
}
public show(id)
{
new RD = random_num(0,3)
set_hudmessage(255, 0, 0, y[RD], x[RD], 0, 6.0, 12.0)
show_hudmessage(id, "message")
 
}

something like this?

Salamon 01-02-2008 09:38

Re: set_hudmessage
 
YES SOMETHING LIKE THIS xD

is it working for sure? xD ofc i will test it but if something is obvious to change in here for me maybe not xD

fxfighter 01-02-2008 09:41

Re: set_hudmessage
 
it shuld i might be able to optimize it more
Code:


new Float:x[4]=
{
0.1, //x on first hud
0.2,
0.3,
0.4
}
new Float:y[4]=
{
0.1, //y on first hud
0.2, //y on second hud and so one. change it to the values you want
0.3,
0.4
}


Sn!ff3r 01-02-2008 10:22

Re: set_hudmessage
 
Polish Only: napisz na forum wiaderka (znajdziesz bez problemu) to ja Ci napiszę to ;) ja myślałem że nie możesz sobie poradzić z zrobieniem dobrego napisu :>

Alka 01-02-2008 14:39

Re: set_hudmessage
 
Or you can do
Code:

random_float(0.1, -1.0);
:/


All times are GMT -4. The time now is 11:03.

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