Raised This Month: $ Target: $400
 0% 

Hud message with two colors


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-19-2016 , 22:00   Hud message with two colors
Reply With Quote #1

Description:
This plugin you the opportunity to put into a single hud two colors, I searched the forum had something more easy explaining not found.
I made a my version and I'm posting for you guys. I hope you enjoy.

Includes:
#include <amxmodx>

Cvars:
No have
Attached Files
File Type: sma Get Plugin or Get Source (two_hudcolors.sma - 1048 views - 1.1 KB)

Last edited by EFFx; 02-19-2016 at 22:21.
EFFx is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 02-19-2016 , 22:13   Re: Hud message with two colors
Reply With Quote #2

There are 2 hud messages, each with a diffrence color.
Its not 'single'.

Like this:
Quote:
This is some text yolo.
Syturi0 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-19-2016 , 22:16   Re: Hud message with two colors
Reply With Quote #3

PHP Code:
#include <amxmodx>

#define PLUGIN "Hud Two Colors"
#define VERSION "1.0"
#define AUTHOR "EFFx" // BR COMANDA KRL

#define TASK_MULTIHUD 239283
#define set_bit(%1,%2) (%1|=(1<<(%2&31)))
#define get_bit(%1,%2) (%1&1<<(%2&31))
#define clear_bit(%1,%2) (%1&=~(1<<(%2&31)))

new Hud

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
Hud CreateHudSyncObj()
    
    
register_clcmd("say /hud","CmdHud")
}
public 
CmdHud(playerid
{
    return 
task_ColoredPartyShow(playerid)
}

public 
task_ColoredPartyShowplayerid )
{
    if( 
playerid 32 )
        
playerid -= TASK_MULTIHUD

    
if( !is_user_connectedplayerid ) )
        return 
0

    
static g_bBlink
    
if( get_bitg_bBlinkplayerid ) )
    {
        
clear_bitg_bBlinkplayerid )
        
set_hudmessage25520255, -1.00.2600.10.2)
    }
    else
    {
        
set_bitg_bBlinkplayerid )
        
set_hudmessage25525520, -1.00.2600.10.2)
    }
    
ShowSyncHudMsgplayerid,Hud"Adicione aqui sua mensagem" )
    
set_task(7.0,"RoundCount2")
    if( !
task_existsTASK_MULTIHUD playerid ) )
        
set_task0.1"task_ColoredPartyShow", ( playerid TASK_MULTIHUD ), __"a"36 )

    return 
1

All this does is show a different color when the hud is shown. You can't show a multi-colored hud.

Edit: Useless
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 02-19-2016 at 22:21.
wickedd is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-19-2016 , 22:17   Re: Hud message with two colors
Reply With Quote #4

So I gave the wrong description, forgive me, however he is picking up 100%.

Show a single HUD with two colors is even impossible, only two messages at the same time. My code is only one show_hudmessage with two color formats.

Last edited by EFFx; 02-19-2016 at 22:20.
EFFx is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 02-19-2016 , 22:32   Re: Hud message with two colors
Reply With Quote #5

Also:

Quote:
Do not post plugins "just for the sake of it". eg. A fulfilled request may have been useful for one or a few people, but that does not necessarily mean that it has a place in the Approved section. Please take the time to expand your knowledge and produce some quality work.
Syturi0 is offline
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 02:47.


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