AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud icon coordinates (https://forums.alliedmods.net/showthread.php?t=189546)

SeezySoft 07-08-2012 09:34

Hud icon coordinates
 
I found this code:

Code:

                        new iconstatus;
                        iconstatus = get_user_msgid("StatusIcon"); 
 
                        message_begin(MSG_ONE,iconstatus,{0,0,0},taskid) 
                              write_byte(1); // status (0=hide, 1=show, 2=flash)
                        write_string("rescue"); // sprite name
                        write_byte(0); // red
                        write_byte(255); // green
                        write_byte(0); // blue
                              message_end();


Posible to make coordinates of icon? Now players can see in left side, how to make this one near timer?

dark_style 07-08-2012 09:55

Re: Hud icon coordinates
 
Syntax:

message_begin ( dest, msg_type, origin[3]={0,0,0},player=0 )

SeezySoft 07-08-2012 10:48

Re: Hud icon coordinates
 
Other question, hostage icon so it is sprite too?

dark_style 07-08-2012 13:38

Re: Hud icon coordinates
 
Yes, there are few releated -

Code:

hostage
hostage4a                       
hostage3a                       
hostage2a                       
hostage1a                       
hostage4                       
hostage3                       
hostage2                       
hostage1

You can see the full list of those icons in hud.txt, located in your sprites directory.

<VeCo> 07-08-2012 14:09

Re: Hud icon coordinates
 
Use "Scenario" message - it is what you want.


All times are GMT -4. The time now is 15:14.

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