I don`t found any scripts to no appear message in hud for dead players,how I can do it?I want to appear message just to players alive.
Code:
#include <amxmodx>
static const PLUGIN[ ]= "Details Server";
static const VERSION[ ]= "1.0";
static const AUTHOR[ ]= "Power";
static const g_szB[ ]= "b";
new SyncHudMessage;
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, AUTHOR);
SyncHudMessage = CreateHudSyncObj( );
set_task( 1.0, "ShowMessage", _, _, _, g_szB );
}
public ShowMessage( )
{
new Players[32], iNum;
get_players(Players, iNum, "ch")
new current_map[32]
get_mapname(current_map, 31)
new timeleft = get_timeleft( )
for( new i = 0; i < iNum; i++ )
{
set_hudmessage(255, 255, 255, -1.0, 0.02, 0, 0.0, 1.0, 0.0, 1.0, 3 );
ShowSyncHudMsg(0, SyncHudMessage, "| Timeleft: %d:%02d | http://www.forum.ro | Harta: %s |", timeleft / 60, timeleft % 60, current_map);
}
}