Raised This Month: $ Target: $400
 0% 

Hud message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
smiley92
Senior Member
Join Date: Jun 2011
Location: Romania
Old 07-15-2012 , 12:42   Hud message
Reply With Quote #1

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);
    }
}
smiley92 is offline
 


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 14:58.


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