Raised This Month: $ Target: $400
 0% 

Arrange huds under each other


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-08-2016 , 20:12   Re: Arrange huds under each other
Reply With Quote #8

You can make them go down in a line, a circle, random, or anything you want. You just need to fill the array with the X,Y coords.
PHP Code:
#include <amxmodx>

enum HUDPos
{
    
Float:HUD_X,
    
Float:HUD_Y
}

new const 
Float:HUDCoords[][ HUDPos ] = 
{
    { 
0.05 0.24 },
    { 
0.05 0.28 },
    { 
0.05 0.32 },
    { 
0.05 0.36 },
    { 
0.05 0.40 },                
    { 
0.05 0.44 },                
    { 
0.05 0.48 },    
    { 
0.05 0.52 }
}
    
public 
plugin_init()
{
    
register_clcmd"say test" "TestCmd" );
}

public 
TestCmdid )
{
    
set_task1.0 "ShowHUD" , .flags="b" );
}

public 
ShowHUD()
{
    static 
iHUDIndex;

    
set_hudmessage255 255 255 HUDCoordsiHUDIndex ][ HUD_X ] , HUDCoordsiHUDIndex ][ HUD_Y ] , .holdtime=1.0 );
    
show_hudmessage"Test hud #%d" iHUDIndex );
    
    if ( ++
iHUDIndex == sizeofHUDCoords ) )
        
iHUDIndex 0;

__________________

Last edited by Bugsy; 02-08-2016 at 20:14.
Bugsy is offline
 



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 09:27.


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