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 TestCmd( id )
{
set_task( 1.0 , "ShowHUD" , .flags="b" );
}
public ShowHUD()
{
static iHUDIndex;
set_hudmessage( 255 , 255 , 255 , HUDCoords[ iHUDIndex ][ HUD_X ] , HUDCoords[ iHUDIndex ][ HUD_Y ] , .holdtime=1.0 );
show_hudmessage( 0 , "Test hud #%d" , iHUDIndex );
if ( ++iHUDIndex == sizeof( HUDCoords ) )
iHUDIndex = 0;
}
__________________