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

[HELP] HUD message to appear forever


Post New Thread Reply   
 
Thread Tools Display Modes
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 04-26-2007 , 02:46   Re: [HELP] HUD message to appear forever
Reply With Quote #11

one last question...
what coding do i add to this plugin to add more HUD messages like i wanna put another HUD message on my server...
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 04-26-2007 , 03:05   Re: HUD message to appear forever
Reply With Quote #12

i dont have a roundtime its set to infinite.
i just want it right next to the radar where it doesnt interfer with anything. just a message bout certain weapons not allowed

Quote:
Originally Posted by bwgrubbs1 View Post
First off why would you want some HUD message to display forever...

but anyways I would just say set the time to whatever your roundtime is set to. For example lets say your server is set to mp_roundtime 5 for 5 minute rounds...

Code:
set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, 300.0) show_hudmessage(id, "yo")

I'm no expert but that would last for 5 minutes and re-appear as soon as the round restarted.
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
Day
Member
Join Date: Jan 2006
Location: Ukraine
Old 04-26-2007 , 04:46   Re: [HELP] HUD message to appear forever
Reply With Quote #13

Quote:
Originally Posted by BioI-Iazard View Post
one last question...
what coding do i add to this plugin to add more HUD messages like i wanna put another HUD message on my server...
Just add another funstion:

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "test" #define VERSION "1.0" #define AUTHOR "test" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     set_task(1.0,"funtime",69,"",0,"b");     set_task(1.0,"funtime2",69,"",0,"b"); } public funtime() {     set_hudmessage(57, 199, 71, -1.0, 0.23, 0, 6.0, 12.0)     show_hudmessage(0, "Lets have sexy funtime one!")    } public funtime2() {     set_hudmessage(57, 199, 71, -1.0, 0.23, 0, 6.0, 12.0)     show_hudmessage(0, "Lets have sexy funtime two!")    }
__________________
Sith Lord Darth Day
Day is offline
Send a message via ICQ to Day
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-26-2007 , 22:33   Re: [HELP] HUD message to appear forever
Reply With Quote #14

Quote:
Originally Posted by Day View Post
Just add another funstion:

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "test" #define VERSION "1.0" #define AUTHOR "test" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     set_task(1.0,"funtime",69,"",0,"b");     set_task(1.0,"funtime2",69,"",0,"b"); } public funtime() {     set_hudmessage(57, 199, 71, -1.0, 0.23, 0, 6.0, 12.0)     show_hudmessage(0, "Lets have sexy funtime one!")    } public funtime2() {     set_hudmessage(57, 199, 71, -1.0, 0.23, 0, 6.0, 12.0)     show_hudmessage(0, "Lets have sexy funtime two!")    }
Ummm no. Just change the channel (first paramater) with another show_hudmessage() in the same function.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
PrEn1umz
Junior Member
Join Date: Feb 2007
Location: Nice, France
Old 04-27-2007 , 06:21   Re: [HELP] HUD message to appear forever
Reply With Quote #15

+1 Day , channel can be 1, 2,3 or 4 ;)
PrEn1umz is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-27-2007 , 08:22   Re: [HELP] HUD message to appear forever
Reply With Quote #16

Code:
new g_MsgSync;

public plugin_init()
{
    g_MsgSync = CreateHudSyncObj();
}

public blabla(id)
{
    set_hudmessage(192, 192, 192, -1.0, 0.45, 2, 0.02, 2.0, 0.01, 0.1);
    ShowSyncHudMsg(id, g_MsgSync, "blabla blub yo yo");
    set_hudmessage(192, 192, 192, -1.0, 0.25, 2, 0.02, 2.0, 0.01, 0.1);
    ShowSyncHudMsg(id, g_MsgSync, "yo yo blabla blub");
}
should work...
__________________
regalis 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 21:23.


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