Raised This Month: $51 Target: $400
 12% 

[INC] Director Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
howluen
Junior Member
Join Date: Apr 2011
Old 08-25-2011 , 03:31   Re: [INC] Director Hud Message
Reply With Quote #121

Halo,

Can anyone show me the way to make it auto loop without client type? I'm not so into coding, sorry.
howluen is offline
DarkT1
Member
Join Date: Oct 2011
Old 10-18-2011 , 12:46   Re: [INC] Director Hud Message
Reply With Quote #122

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <dhudmessage>
#define PLUGIN "message"
#define VERSION "1.0"
#define AUTHOR "dark"
public client_putinserver(id)
{
set_dhudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, 12.0)
show_dhudmessage( id, "Your message here")
}
DarkT1 is offline
lqlqlq
Senior Member
Join Date: Jan 2008
Old 11-07-2011 , 00:14   Re: [INC] Director Hud Message
Reply With Quote #123

Arkshine, can you make this plugin to works with dhud:
Code:
#include <amxmodx> 
#include <amxmisc> 
#include <dhudmessage> 
#define MAX_PLAYERS 32 
new const Float:g_flCoords[][] =  
{ 
    {0.50, 0.40}, 
    {0.56, 0.44}, 
    {0.60, 0.50}, 
    {0.56, 0.56}, 
    {0.50, 0.60}, 
    {0.44, 0.56}, 
    {0.40, 0.50}, 
    {0.44, 0.44} 
} 
new const g_iColors[][] = 
{ 
    {0, 127, 255}, // blue 
    {255, 127, 0}, // orange 
    {127, 0, 255}, // purple 
    {255, 0, 0}, // red 
    {255, 100, 150} // pink 
} 
new g_iPlayerPos[MAX_PLAYERS+1] 
new g_iPlayerCol[MAX_PLAYERS+1] 
new g_iMaxPlayers 
new g_pCvarEnabled 
public plugin_init() 
{ 
    register_plugin( "Bullet Damage", "v2", "ConnorMcLeod" ); 
    g_pCvarEnabled = register_cvar("bullet_damage", "1") 
    register_event("Damage", "Event_Damage", "b", "2>0", "3=0") 
    g_iMaxPlayers = get_maxplayers() 
} 
public Event_Damage( iVictim ) 
{ 
    if( get_pcvar_num(g_pCvarEnabled) && (read_data(4) || read_data(5) || read_data(6)) ) 
    { 
        new id = get_user_attacker(iVictim) 
        if( (1 <= id <= g_iMaxPlayers) && is_user_connected(id) ) 
        { 
            new iPos = ++g_iPlayerPos[id] 
            if( iPos == sizeof(g_flCoords) ) 
            { 
                iPos = g_iPlayerPos[id] = 0 
            } 
            new iCol = ++g_iPlayerCol[id] 
            if( iCol == sizeof(g_iColors) ) 
            { 
                iCol = g_iPlayerCol[id] = 0 
            } 
            set_hudmessage(g_iColors[iCol][0], g_iColors[iCol][1], g_iColors[iCol][2], Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1) 
            show_hudmessage(id, "%d", read_data(2)) 
        } 
    } 
}
(when i added dhud, my circle of hud's doesn't work correctly.)

Last edited by lqlqlq; 11-07-2011 at 00:38.
lqlqlq is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-07-2011 , 04:50   Re: [INC] Director Hud Message
Reply With Quote #124

What do you mean by "not working properly" ?
__________________
Arkshine is offline
GAARA54
Veteran Member
Join Date: Oct 2009
Location: Everywhere
Old 12-05-2011 , 17:05   Re: [INC] Director Hud Message
Reply With Quote #125

lqlqlq, same stupid problem, with this awesome plugin...
__________________
GAARA54 is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-14-2012 , 03:07   Re: [INC] Director Hud Message
Reply With Quote #126

This is awesome! But I have a problem.. If you have time, check my zip file, there's 2 demos, the first "dhud.dem" (with your .inc), and the second "without_dhud.dem" (using 'set_hudmessage')
Also I included a map, because without the map you can't view the demo..

My problem is the timer_task (kreedz plugin)
Code:
show_hudmessage(i, "Time: %02d:%02d  | CPs: %d | TPs: %d ",imin, isec,checknumbers[i], gochecknumbers[i])
Just watch the demos to understand what i'm talking about.. is there any solution for dhud.inc?
Attached Files
File Type: zip map and .dem files.zip (1.14 MB, 265 views)
bazhenov93 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-07-2012 , 02:09   Re: [INC] Director Hud Message
Reply With Quote #127

A hopely funny plugin that uses this inc to imitate wh. Unfortunately it depends on resolution. Hoping it to give some idea to anyone to create some random plugin.
edit: I named it WH but the it should be ESP like Connor told me.
Attached Files
File Type: sma Get Plugin or Get Source (dhud_wh.sma - 865 views - 2.9 KB)

Last edited by joaquimandrade; 05-07-2012 at 09:35.
joaquimandrade is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 07-30-2012 , 16:59   Re: [INC] Director Hud Message
Reply With Quote #128

Quote:
You can show only 8 messages at once.
so you mean with dhud you can have twice as much as with normal show_hud displayed at once?

can you use usual show_hud with dhud? will their limits intercept and be total 8 maximum or total 12 maximum shown messages at once then?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-31-2012 , 03:40   Re: [INC] Director Hud Message
Reply With Quote #129

Again, normal HUD and director HUD are two differents HUD and handled differently.

Director HUD has bigger letters, and doesn't use channel.

Please read the thread.
__________________
Arkshine is offline
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 08-02-2012 , 13:15   Re: [INC] Director Hud Message
Reply With Quote #130

Hey Arkshine as I can do to remove dhudmessage?
I use it for when someone points to another player and when I point out another two dhudmessage and are not removed as I can do to remove it?
excuse my bad English
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.

Last edited by DJHD!; 08-02-2012 at 13:17.
DJHD! is offline
Send a message via MSN to DJHD!
Reply



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:28.


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