Raised This Month: $ Target: $400
 0% 

set_hudmessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 01-02-2008 , 08:54   set_hudmessage
Reply With Quote #1

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
Salamon is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-02-2008 , 09:03   Re: set_hudmessage
Reply With Quote #2

Use AMXX Studio - it have simple hudmessage generator.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 01-02-2008 , 09:08   Re: set_hudmessage
Reply With Quote #3

(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
Salamon is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-02-2008 , 09:13   Re: set_hudmessage
Reply With Quote #4

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?
fxfighter is offline
Send a message via MSN to fxfighter
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 01-02-2008 , 09:38   Re: set_hudmessage
Reply With Quote #5

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
Salamon is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-02-2008 , 09:41   Re: set_hudmessage
Reply With Quote #6

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
}
fxfighter is offline
Send a message via MSN to fxfighter
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-02-2008 , 10:22   Re: set_hudmessage
Reply With Quote #7

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 :>
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 01-02-2008 , 14:39   Re: set_hudmessage
Reply With Quote #8

Or you can do
Code:
random_float(0.1, -1.0);
:/
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Reply


Thread Tools
Display Modes

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 11:03.


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