Raised This Month: $ Target: $400
 0% 

Hud Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 09:17   Hud Messages
Reply With Quote #1

Hy y put in a plugin this HUD messages

Code:
            set_hudmessage(0, 255, 255, 0.0, 0.55, 0, 6.0, 3.0)
            show_hudmessage(id, "mesage")
The plugin has his own .txt file in data/lang

How can y make the "show_hudmessage(id, "mesage")" do display a message from .txt file like this

message = You just bought.....

+ Karma
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-09-2009 , 09:48   Re: Hud Messages
Reply With Quote #2

There's multilingual tutorial in the wiki.
SnoW is offline
Send a message via MSN to SnoW
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 10:06   Re: Hud Messages
Reply With Quote #3

yes great help.
If y would have found it y wouldnt post here anymore man
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2009 , 10:31   Re: Hud Messages
Reply With Quote #4

// plugin_init()
register_dictionary( "mydictionary.txt" );

// in your function()
show_hudmessage(id, "%L", id, "MY_KEYLANG");

// in your mydictionary.txt file
[en]
MY_KEYLANG = blabla.
__________________
Arkshine is offline
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 10:37   Re: Hud Messages
Reply With Quote #5

thanks alot ark.
you are the best
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2009 , 10:38   Re: Hud Messages
Reply With Quote #6

In the case you pass 0 as id, you have to write : show_hudmessage(0, "%L", LANG_PLAYER, "MY_KEYLANG");
__________________
Arkshine is offline
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 10:43   Re: Hud Messages
Reply With Quote #7

no it will be id.
it will display only to the user that usez that function.
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 12:55   Re: Hud Messages
Reply With Quote #8

Well one more little problem.
The hud mesages apears and it last as much as it set but if y aim at a player and its displays his name the hud mesages disapears.
Any fix for that?
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2009 , 13:27   Re: Hud Messages
Reply With Quote #9

Because you have probably another plugin which show a HUD message on the same channel. Try to change channel :

set_hudmessage(0, 255, 255, 0.0, 0.55, 0, 6.0, 3.0, 1) ( 1 -> 4 )
__________________
Arkshine is offline
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 13:38   Re: Hud Messages
Reply With Quote #10

so y can chose betwen 1 and 4 channels yes?

EDIT:
Y did it like this and y get a tag mismatch error at the first line
PHP Code:
            set_hudmessage(id2552550.00.5506.05.01)
            
show_hudmessage(id"%L"LANG_PLAYER"SM3_HEAL"MOD); 

Last edited by StormZone; 10-09-2009 at 13:45.
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
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 22:41.


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